-
Notifications
You must be signed in to change notification settings - Fork 24
/
.eslintrc
47 lines (46 loc) · 1.07 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
{
"extends": ["standard"],
"env": {
"browser": false
},
"globals": {
"__DEV__": false,
"__TEST__": false,
"__PROD__": false,
"__COVERAGE__": false
},
"ignorePatterns": "tests/*",
"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,
"argsIgnorePattern": "^_"
}
],
"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", 6]
}
}