-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
65 lines (62 loc) · 1.6 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
57
58
59
60
61
62
63
64
{
"extends": "eslint:recommended",
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"es6": true,
"commonjs": true,
"node": true,
"browser": true
},
"settings": {
"ecmascript": 6,
"jsx": true
},
"plugins": [
"react",
"filenames"
],
"globals": {
"NODE_ENV": true
},
"rules": {
"semi": 2,
"no-var": 2,
"space-infix-ops": 2,
"space-in-parens": [2, "never"],
"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, { "SwitchCase": 1 }],
"space-before-function-paren": [2, "never"],
"space-before-blocks": [2, "always"],
"keyword-spacing": 2,
"key-spacing": [2, {
"beforeColon": false,
"afterColon": true,
"mode": "minimum"
}],
"react/react-in-jsx-scope": 2,
"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,
"react/no-string-refs": 2,
"filenames/filenames": [2, "^[a-z.-]+$"]
}
}