-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
42 lines (40 loc) · 1.19 KB
/
eslint.config.js
File metadata and controls
42 lines (40 loc) · 1.19 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
38
39
40
41
42
/* eslint-env node */
const js = require('@eslint/js');
module.exports = [
{
ignores: ['dist/**', 'node_modules/**']
},
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2021,
sourceType: 'script',
globals: {
require: 'readonly',
module: 'readonly',
console: 'readonly',
process: 'readonly',
__dirname: 'readonly'
}
},
rules: {
quotes: ['error', 'single'],
'no-undef': 'error',
'no-unreachable': 'error',
'no-unused-vars': 'error',
'arrow-parens': ['error', 'as-needed'],
'no-param-reassign': 'error',
'prefer-arrow-callback': 'error',
'no-duplicate-imports': 'error',
semi: 'error',
'no-extra-semi': 'error',
'comma-dangle': 'error',
'prefer-template': 'error',
'eol-last': 'error',
indent: ['error', 4, { SwitchCase: 1 }],
'prefer-const': 'error',
'no-debugger': 'error',
'no-case-declarations': 'off'
}
}
];