Skip to content

Commit 8a4056f

Browse files
refactor: Bump eslint from 8.57.1 to 9.30.1 (#156)
1 parent c236b2a commit 8a4056f

File tree

6 files changed

+426
-378
lines changed

6 files changed

+426
-378
lines changed

.eslintrc

Lines changed: 0 additions & 29 deletions
This file was deleted.

eslint.config.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import js from '@eslint/js';
2+
import globals from 'globals';
3+
4+
export default [
5+
js.configs.recommended,
6+
{
7+
files: ['**/*.js'],
8+
ignores: ['node_modules/**'],
9+
languageOptions: {
10+
ecmaVersion: 6,
11+
sourceType: 'module',
12+
globals: {
13+
...globals.node,
14+
Parse: 'readonly'
15+
}
16+
},
17+
rules: {
18+
indent: ['error', 2, { SwitchCase: 1 }],
19+
'linebreak-style': ['error', 'unix'],
20+
'no-trailing-spaces': 2,
21+
'eol-last': 2,
22+
'space-in-parens': ['error', 'never'],
23+
'no-multiple-empty-lines': 1,
24+
'prefer-const': 'error',
25+
'space-infix-ops': 'error',
26+
'no-useless-escape': 'off',
27+
'require-atomic-updates': 'off',
28+
'object-curly-spacing': ['error', 'always']
29+
}
30+
},
31+
{
32+
files: ['spec/**/*.js'],
33+
languageOptions: {
34+
globals: {
35+
...globals.node,
36+
...globals.jasmine,
37+
Parse: 'readonly'
38+
}
39+
}
40+
}
41+
];

0 commit comments

Comments
 (0)