-
Notifications
You must be signed in to change notification settings - Fork 9
/
eslint.config.js
53 lines (53 loc) · 1.71 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
module.exports = [
{
rules: {
"consistent-return": "error",
"consistent-this": "error",
"no-constructor-return": "error",
"no-implicit-coercion": "error",
"no-implicit-globals": "error",
"no-lonely-if": "error",
"no-throw-literal": "error",
"no-unmodified-loop-condition": "error",
"no-unneeded-ternary": "error",
"no-unreachable-loop": "error",
"no-unused-expressions": "error",
"no-unused-private-class-members": "error",
"no-unused-vars": "error",
"no-useless-constructor": "error",
"no-var": "error",
"one-var": ["error", "never"],
"prefer-const": "error",
"prefer-object-spread": "error",
"prefer-spread": "error",
"prefer-template": "error",
"require-await": "error",
"spaced-comment": "warn",
camelcase: "error",
curly: "error",
eqeqeq: "error",
"capitalized-comments": [
"warn",
"always",
{
ignoreConsecutiveComments: true,
ignorePattern: "\\S*\\(.*\\)|ms|em",
},
],
"lines-around-comment": [
"warn",
{
allowBlockStart: true,
beforeLineComment: true,
},
],
"no-magic-numbers": [
"error",
{
ignore: [-1, 0, 1, 2],
ignoreClassFieldInitialValues: true,
},
],
},
},
]