-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
56 lines (52 loc) · 1.41 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
52
53
54
55
56
{
"extends": "eslint:recommended",
"parser": "babel-eslint",
"env": {
"commonjs": true,
"node": true,
"browser": true
},
"settings": {
"ecmascript": 6,
"jsx": true
},
"plugins": [
"react",
"filenames"
],
"rules": {
"semi": 2,
"no-var": 2,
"space-infix-ops": 2,
"space-in-parens": [2, "never"],
"no-extra-parens": 2,
"eqeqeq": [2, "allow-null"],
"max-statements": [2, 15],
"max-params": [2, 4],
"max-len": [2, 120, 4],
"max-depth": [2, 2],
"complexity": [2, 4],
"strict": 0,
"no-console": 0,
"quotes": [2, "single"],
"no-trailing-spaces": [2, { "skipBlankLines": false }],
"camelcase": 0,
"indent": [2, 2],
"space-before-function-paren": [2, "never"],
"space-before-blocks": [2, "always"],
"space-after-keywords": [2, "always"],
"key-spacing": [2, {
"beforeColon": false,
"afterColon": true,
"mode": "minimum"
}],
"react/jsx-uses-react": 2,
"react/jsx-curly-spacing": [2, "never"],
"react/jsx-boolean-value": [2, "always"],
"react/jsx-indent-props": [2, 2],
"react/jsx-indent": [2, 2],
"react/jsx-key": 2,
"react/jsx-uses-vars": 2,
"filenames/filenames": [2, "^[a-z.-]+$"]
}
}