Skip to content

Commit

Permalink
fix: update eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Dec 18, 2024
1 parent 6e1c8af commit 2fe00cb
Show file tree
Hide file tree
Showing 8 changed files with 10,563 additions and 6,544 deletions.
21 changes: 0 additions & 21 deletions .eslintrc.js

This file was deleted.

4 changes: 2 additions & 2 deletions bin/postinstall-script.js → bin/postinstall-script.cjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const rimraf = require('rimraf');
const fs = require('node:fs');

Check warning on line 1 in bin/postinstall-script.cjs

View workflow job for this annotation

GitHub Actions / Test

Filename 'postinstall-script.cjs' does not match the naming convention
const https = require('node:https');
const zlib = require('node:zlib');
const path = require('node:path');
const zlib = require('node:zlib');
const rimraf = require('rimraf');
const tar = require('tar-fs');

const destination = path.resolve(__dirname, '../src/pg-formatter');
Expand Down
31 changes: 31 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
const auto = require('eslint-config-canonical/configurations/auto');
const ava = require('eslint-config-canonical/configurations/ava');
const node = require('eslint-config-canonical/configurations/node');

module.exports = [
...auto,
ava.recommended,
{
files: ['**/*.cjs'],
...node.recommended,
},
{
rules: {
'no-template-curly-in-string': 0,
},
},
{
ignores: [
'package-lock.json',
'dist',
'node_modules',
'src/pg-formatter',
'*.log',
'.*',
'!.github',
'!.gitignore',
'!.husky',
'!.releaserc',
],
},
];
Loading

0 comments on commit 2fe00cb

Please sign in to comment.