-
Notifications
You must be signed in to change notification settings - Fork 95
/
eslint.config.js
57 lines (56 loc) · 1.83 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import globals from 'globals'
import pluginJs from '@eslint/js'
export default [
{languageOptions: {globals: {...globals.browser, process: true}}},
pluginJs.configs.recommended,
{
rules: {
'array-callback-return': 'error',
'arrow-body-style': 'error',
camelcase: ['error', {properties: 'never'}],
curly: 'error',
'dot-notation': 'error',
eqeqeq: 'error',
'no-delete-var': 'error',
'no-duplicate-imports': 'error',
'no-else-return': 'error',
'no-extra-bind': 'error',
'no-extra-boolean-cast': 'error',
'no-extra-label': 'error',
'no-global-assign': 'error',
'no-invalid-this': 'error',
'no-labels': 'error',
'no-lonely-if': 'error',
'no-multi-str': 'error',
'no-self-compare': 'error',
'no-sequences': 'error',
'no-template-curly-in-string': 'error',
'no-throw-literal': 'error',
'no-undef-init': 'error',
'no-undefined': 'error',
'no-unneeded-ternary': 'error',
'no-unreachable-loop': 'error',
'no-unused-expressions': 'error',
'no-unused-vars': ['error', {caughtErrors: 'none'}],
'no-use-before-define': ['error', {variables: false}],
'no-useless-assignment': 'error',
'no-useless-call': 'error',
'no-useless-catch': 'error',
'no-useless-concat': 'error',
'no-useless-constructor': 'error',
'no-useless-return': 'error',
'no-var': 'error',
'no-with': 'error',
'one-var': ['error', 'never'],
'prefer-arrow-callback': 'error',
'prefer-const': 'error',
'prefer-exponentiation-operator': 'error',
'prefer-object-spread': 'error',
'prefer-regex-literals': 'error',
'prefer-rest-params': 'error',
'prefer-spread': 'error',
'require-atomic-updates': 'error',
'require-await': 'error'
}
}
]