-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
38 lines (38 loc) · 1.26 KB
/
eslint.config.js
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
// ------------------------------------------- [email protected] ------------------------------------------- //
import globals from 'globals';
import stylistic from '@stylistic/eslint-plugin-js';
//
export default [
{
languageOptions: {
globals: { ...globals.node }
},
plugins: {
'@stylistic/js': stylistic
},
rules: {
'@stylistic/js/indent': ['warn', 2],
'@stylistic/js/no-extra-semi': 'warn',
'@stylistic/js/no-mixed-spaces-and-tabs': 'warn',
'@stylistic/js/no-multi-spaces': 'warn',
'@stylistic/js/no-multiple-empty-lines': ['warn', { max: 0 }],
'@stylistic/js/quotes': ['warn', 'single', { avoidEscape: true }],
'@stylistic/js/semi': 'warn',
curly: ['warn', 'multi'],
eqeqeq: 'warn',
'for-direction': 'warn',
'no-const-assign': 'warn',
'no-global-assign': 'warn',
'no-redeclare': 'warn',
'no-self-assign': 'warn',
'no-undef': 'warn',
'no-unreachable': 'warn',
'no-unused-vars': 'warn',
'no-var': 'warn',
'prefer-const': 'warn',
strict: ['warn', 'global'],
'valid-typeof': 'warn'
}
}
];
// ------------------------------------------- [email protected] ------------------------------------------- //