Skip to content

Commit

Permalink
Upgraded to eslint 9.8
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmx committed Aug 8, 2024
1 parent 1169d81 commit 1755989
Show file tree
Hide file tree
Showing 5 changed files with 426 additions and 169 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

44 changes: 0 additions & 44 deletions .eslintrc.json

This file was deleted.

36 changes: 36 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
const { configs } = require('@eslint/js');
const jest = require('eslint-plugin-jest');
const globals = require('globals');

module.exports = [
configs.recommended,
{
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'commonjs',
globals: { ...globals.node, Atomics: 'readonly', SharedArrayBuffer: 'readonly' }
},
rules: {
semi: 'error',
quotes: ['error', 'single'],
indent: ['error', 4, { 'SwitchCase': 1 }],
'no-unused-vars':
[
'warn',
{
'varsIgnorePattern': '^_',
'args': 'after-used',
'argsIgnorePattern': '^_'
}
]
},
ignores: ['coverage/', 'conf/']
},
{
files: ['test/*.js'],
...jest.configs['flat/recommended'],
rules: {
...jest.configs['flat/recommended'].rules
}
}
];
Loading

0 comments on commit 1755989

Please sign in to comment.