-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.json
54 lines (54 loc) · 1.09 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
{
"parser": "babel-eslint",
"extends": "airbnb",
"env": {
"browser": true,
"node": true
},
"globals": {
"NProgress": true
},
"rules": {
//because no hot-reload
"react/prefer-stateless-function": 0,
"no-param-reassign": 0,
"no-warning-comments": 1,
"new-cap": 0,
"max-len": ["error", 120],
"no-confusing-arrow": 0,
"no-console": [2, { "allow": ["warn", "error"] }],
"brace-style": [2, "stroustrup"],
"indent": [2, 2, { "SwitchCase": 1}],
"new-cap": [2, { "properties": false }],
"consistent-return": 0,
"prefer-const": ["error", {
"destructuring": "all"
}],
"no-class-assign": 0,
"no-use-before-define": [
2, "nofunc"
],
"no-underscore-dangle": [
2,
{
"allow": [
"_getCss",
"_insertCss",
"_id"
]
}
],
"space-before-function-paren": [1, "never"],
"no-trailing-spaces": [
"error",
{
"skipBlankLines": true
}
],
"react/jsx-quotes": 0,
"jsx-quotes": [
2,
"prefer-double"
]
}
}