-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
96 lines (94 loc) · 2.72 KB
/
.eslintrc.json
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"env": {
"browser": true,
"es2021": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2021
},
"rules": {
// Possible Problems
"array-callback-return": "warn",
"no-await-in-loop": "warn",
"no-debugger": "warn",
"no-duplicate-imports": "warn",
"no-fallthrough": ["warn", { "commentPattern": "break[\\s\\w]*omitted" }],
"no-inner-declarations": "warn",
"no-loss-of-precision": "warn",
"no-promise-executor-return": "warn",
"no-self-assign": "warn",
"no-self-compare": "warn",
"no-sparse-arrays": "warn",
"no-template-curly-in-string": "warn",
"no-unexpected-multiline": "warn",
"no-unmodified-loop-condition": "warn",
"no-unreachable": "warn",
"no-unreachable-loop": "warn",
"no-unused-vars": "warn",
"no-use-before-define": [ "error", { "functions": false }],
"require-atomic-updates": "warn",
// Suggestions
"accessor-pairs": "warn",
"consistent-return": "warn",
"curly": ["warn", "multi-line"],
"default-param-last": "warn",
"dot-notation": "warn",
"grouped-accessor-pairs": "warn",
"guard-for-in": "warn",
"no-alert": "warn",
"no-bitwise": "warn",
"no-caller": "error",
"no-confusing-arrow": "warn",
"no-console": [ "warn", { "allow": [ "error", "warn", "info", "table", "time", "timeEnd", "debug" ]}],
"no-empty": "warn",
"no-empty-function": "warn",
"no-eq-null": "warn",
"no-eval": "error",
"no-extend-native": "warn",
"no-extra-bind": "warn",
"no-extra-boolean-cast": "warn",
"no-extra-label": "warn",
"no-extra-semi": "warn",
"no-floating-decimal": "warn",
"no-implicit-globals": "warn",
"no-implied-eval": "error",
"no-invalid-this": "warn",
"no-iterator": "error",
"no-label-var": "error",
"no-lone-blocks": "warn",
"no-lonely-if": "warn",
"no-loop-func": "warn",
"no-mixed-operators": "warn",
"no-nested-ternary": "warn",
"no-new-func": "error",
"no-new-wrappers": "warn",
"no-octal-escape": "error",
"no-param-reassign": "off",
"no-proto": "error",
"no-regex-spaces": "warn",
"no-return-assign": "warn",
"no-return-await": "warn",
"no-script-url": "error",
"no-sequences": "warn",
"no-shadow": "warn",
"no-throw-literal": "warn",
"no-unused-expressions": "warn",
"no-useless-call": "warn",
"no-useless-computed-key": "warn",
"no-useless-concat": "warn",
"no-var": "error",
"no-void": "error",
"one-var-declaration-per-line": "warn",
"prefer-promise-reject-errors": "warn",
"radix": ["error", "as-needed"],
"require-await": "warn",
"strict": "warn",
// Layout & Formatting
"indent": [ "warn", "tab", { "SwitchCase": 1 } ],
"no-multi-spaces": "warn",
"semi": "warn",
"unicode-bom": "error",
"wrap-iife": [ "warn", "any" ]
}
}