Skip to content

Commit c1a85ec

Browse files
authored
refactor: Update eslint (#563)
1 parent 99e6751 commit c1a85ec

File tree

4 files changed

+399
-350
lines changed

4 files changed

+399
-350
lines changed

.eslintrc.json

-30
This file was deleted.

eslint.config.js

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
export default [
2+
{
3+
files: ['**/*.js'], // Apply to JavaScript files.
4+
languageOptions: {
5+
ecmaVersion: 2022,
6+
sourceType: 'module',
7+
globals: {
8+
Parse: 'readonly', // Define global variables here.
9+
},
10+
},
11+
rules: {
12+
indent: ['error', 2, { SwitchCase: 1 }],
13+
'linebreak-style': ['error', 'unix'],
14+
'no-trailing-spaces': 'error',
15+
'eol-last': 'error',
16+
'space-in-parens': ['error', 'never'],
17+
'no-multiple-empty-lines': 'warn',
18+
'prefer-const': 'error',
19+
'space-infix-ops': 'error',
20+
'no-useless-escape': 'off',
21+
'require-atomic-updates': 'off',
22+
'no-var': 'warn',
23+
'no-await-in-loop': 'warn',
24+
},
25+
},
26+
];

0 commit comments

Comments
 (0)