-
Notifications
You must be signed in to change notification settings - Fork 12
/
.eslintrc.js
43 lines (43 loc) · 998 Bytes
/
.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
module.exports = {
"env": {
"browser": false,
"node": true,
"commonjs": true,
"es2021": true
},
"extends": "eslint:recommended",
"overrides": [
{
"files": [
"**/*.test.js",
"**/*.test.jsx"
],
"env": {
"jest": true
}
}
],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"indent": ["error", 2, {SwitchCase: 1}],
"no-await-in-loop": ["warn"],
"no-use-before-define": ["warn"],
"no-unreachable-loop": ["warn"],
"no-duplicate-imports": ["warn"],
"array-callback-return": ["warn"],
"eqeqeq": ["error"],
"yoda": ["warn", "always"],
"no-new-wrappers": ["warn"],
"space-before-blocks": ["warn"],
"no-else-return": ["warn"],
"no-unneeded-ternary": ["warn"],
"no-loop-func": ["warn"],
"no-eval": ["error"],
"prefer-template": ["warn"],
"no-array-constructor": ["warn"],
"prefer-object-spread": ["warn"],
"no-new-object": ["warn"]
}
}