-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
71 lines (65 loc) · 1.91 KB
/
.eslintrc.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
module.exports = {
'env': {
'browser': true,
'es2021': true
},
'extends': [
'eslint:recommended',
'plugin:@typescript-eslint/recommended'
],
'parser': '@typescript-eslint/parser',
'parserOptions': {
'ecmaVersion': 12,
'sourceType': 'module'
},
'plugins': [
'@typescript-eslint'
],
'rules': {
'@typescript-eslint/no-non-null-assertion': 'off',
'unicorn/numeric-separators-style': 'off',
'unicorn/prefer-node-protocol': 'off',
'unicorn/prefer-module': 'off',
'unicorn/no-null': 'off',
'unicorn/prefer-number-properties': 'off',
'unicorn/prevent-abbreviations': 'off',
'unicorn/consistent-function-scoping': 'off',
'prettier/prettier': 'warn',
'curly': ['warn', 'multi'],
'one-var': ['warn', 'consecutive'],
'yoda': 'warn',
'array-callback-return': 'error',
'default-case-last': 'error',
'dot-notation': 'error',
'eqeqeq': 'error',
'guard-for-in': 'off',
'max-classes-per-file': 'error',
'prefer-const': 'off',
'no-useless-backreference': 'error',
'no-unsafe-optional-chaining': 'error',
'no-unreachable-loop': 'error',
'no-template-curly-in-string': 'error',
'no-promise-executor-return': 'error',
'no-prototype-builtins': 'error',
'no-case-declarations': 'error',
'no-div-regex': 'error',
'no-regex-spaces': 'error',
'no-control-regex': 'error',
'no-eval': 'error',
'no-extend-native': 'error',
'no-implied-eval': 'error',
'no-iterator': 'error',
'no-labels': 'error',
'no-else-return': 'warn',
'object-shorthand': 'warn',
'operator-assignment': 'warn',
'no-fallthrough': 'off',
'prefer-destructuring': [
'warn',
{
'object': true,
'array': true
}
]
}
};