-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
78 lines (78 loc) · 2.19 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
{
"env": {
"browser": true,
"es2022": true,
"node": true,
"jest": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"strict": ["error", "global"],
"semi": "error",
"array-callback-return": "error",
"no-constant-binary-expression": "error",
"no-constructor-return": "error",
"no-duplicate-imports": "error",
"no-promise-executor-return": "error",
"no-self-compare": "error",
"no-template-curly-in-string": "error",
"no-unreachable-loop": "error",
"no-unused-private-class-members": "error",
"require-atomic-updates": "error",
"no-unmodified-loop-condition": "warn",
"camelcase": "warn",
"consistent-return": "warn",
"curly": ["warn", "multi-line"],
"default-param-last": "warn",
"eqeqeq": "warn",
"no-else-return": "warn",
"no-eval": "error",
"no-implicit-coercion": "warn",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-lonely-if": "warn",
"no-mixed-operators": "warn",
"no-return-assign": "error",
"no-restricted-properties": ["error", {
"property": "lenght",
"message": "Did you mean 'length'?"
}],
"no-shadow": "warn",
"no-undefined": "error",
"no-unneeded-ternary": "warn",
"no-unused-expressions": "warn",
"no-useless-return": "warn",
"no-var": "warn",
"no-void": "error",
"no-warning-comments": "warn",
"prefer-const": "warn",
"prefer-exponentiation-operator": "warn",
"prefer-rest-params": "warn",
"prefer-spread": "warn",
"prefer-template": "warn",
"require-await": "warn",
"yoda": "warn",
"arrow-parens": "warn",
"brace-style": "warn",
"comma-dangle": ["warn", "always-multiline"],
"comma-spacing": "warn",
"comma-style": "warn",
"eol-last": "warn",
"indent": ["warn", 2],
"keyword-spacing": "warn",
"max-len": ["warn", {
"ignoreComments": true,
"ignoreUrls": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}],
"no-trailing-spaces": "warn",
"quotes": ["warn", "single"],
"space-infix-ops": "warn",
"space-unary-ops": "warn"
}
}