-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
49 lines (49 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
{
"extends": ["eslint:recommended"],
"env": {
"es6" : true,
"browser" : true,
"node" : true
},
"ecmaFeatures" : {
"jsx" : true,
"templateStrings" : true
},
"plugins": [
"react"
],
"rules": {
"react/react-in-jsx-scope": 2,
"react/jsx-uses-react": 1,
"block-scoped-var": 2,
"guard-for-in": 2,
"no-else-return": 2,
"no-eq-null": 2,
"no-multi-spaces": 1,
"no-self-compare": 2,
"brace-style": 2,
"comma-spacing": [2, {"before": false, "after": true}],
"semi-spacing": [2, {"before": false, "after": true}],
"comma-style": 2,
"spaced-comment": 2,
"newline-after-var": 2,
"no-trailing-spaces": 2,
"key-spacing": 2,
"space-return-throw-case": 2,
"space-after-keywords": 2,
"space-before-keywords": [2, "always"],
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
"space-in-parens": [2, "never"],
"space-before-blocks": 2,
"indent": [2, 4, {"SwitchCase": 1}],
"no-unexpected-multiline": 2,
"curly": 2,
"eqeqeq": [2, "smart"],
"guard-for-in": 2,
"no-trailing-spaces": 2,
"space-unary-ops": 2,
"space-return-throw-case": 2,
"space-infix-ops": 2,
"operator-linebreak": [2, "after"]
}
}