-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
51 lines (50 loc) · 1.18 KB
/
.eslintrc
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
{
"parser": "babel-eslint",
"env": {
"node": true,
"es6": true,
"jest/globals": true
},
"plugins": [
"prettier",
"jest"
],
"extends": [
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true,
"experimentalObjectRestSpread": true
}
},
"rules": {
"prettier/prettier": ["error", {"singleQuote": true, "trailingComma":"all"}],
"no-console": 0,
"no-unused-vars": 1,
"no-constant-condition": "error",
"complexity": "warn",
"max-depth": "warn",
"max-statements": ["warn", 15],
"no-eq-null": "warn",
"no-implicit-coercion": "error",
"no-return-assign": ["warn", "always"],
"no-unmodified-loop-condition": "warn",
"no-useless-call": "warn",
"no-useless-escape": "warn",
"no-useless-return": "warn",
"yoda": "warn",
"no-duplicate-imports": "warn",
"prefer-arrow-callback": "warn",
"prefer-template": "warn",
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/valid-expect": "error"
},
"globals": {
"fetch": true
}
}