-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc
39 lines (38 loc) · 1.23 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
{
"extends" : [
"standard"
],
"env" : {
"browser" : false,
"jest/globals" : true
},
"globals" : {
"__DEV__" : false,
"__TEST__" : false,
"__PROD__" : false,
"__COVERAGE__" : false
},
"parserOptions": {
"ecmaVersion": 2022
},
"plugins": ["jest"],
"rules" : {
"brace-style" : [2, "1tbs"],
"comma-dangle" : [2, "never"],
"indent" : ["error", 2, {"SwitchCase" : 1}],
"key-spacing" : 0,
"max-len" : [0, 120, 2],
"max-lines-per-function": ["warn", {"max": 30, "skipBlankLines": true, "skipComments": true}],
"no-unused-vars" : [1, { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }],
"no-var" : 1,
"object-curly-spacing" : [2, "always"],
"prefer-const" : [1, {
"destructuring" : "any",
"ignoreReadBeforeAssign" : true
}],
"semi" : [2, "always"],
"space-in-parens" : ["error", "never"],
// This should replicate Code Climate's computational complexity code smells warning. It is actually more strict.
"complexity" : ["warn", 5]
}
}