-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheslint.config.js
More file actions
37 lines (35 loc) · 1.06 KB
/
eslint.config.js
File metadata and controls
37 lines (35 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
const globals = require('globals');
const eslintConfigPrettier = require('eslint-config-prettier');
const config = {
languageOptions: {
ecmaVersion: 2022,
sourceType: 'commonjs',
globals: {
...globals.node,
...globals.mocha,
},
},
ignores: ['.git/*', '.vscode/*', '.idea/*', 'node_modules/*', 'grammars/*', 'parser/*'],
rules: {
'no-cond-assign': 'error',
'no-const-assign': 'error',
'no-dupe-args': 'error',
'no-dupe-keys': 'error',
'no-duplicate-case': 'error',
'no-unreachable': 'error',
'eqeqeq': 'error',
'no-var': 'error',
'no-undef': 'error',
'no-bitwise': 'warn',
'no-dupe-else-if': 'warn',
'no-duplicate-imports': 'warn',
'no-import-assign': 'warn',
'no-empty': 'warn',
'no-extra-semi': 'error',
'no-global-assign': 'warn',
'no-redeclare': 'warn',
'no-debugger': 'error',
'no-console': 'error',
},
};
module.exports = [config, eslintConfigPrettier];