-
Notifications
You must be signed in to change notification settings - Fork 30
/
.eslintrc
62 lines (58 loc) · 1.22 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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true,
"module": true
},
"sourceType": "module"
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": [
"react"
],
"rules": {
// Ignore
"new-cap": 0,
"strict": 0,
// Warnings
"no-console": 1,
"no-unused-vars": 1,
"no-debugger": 1,
"no-empty": 1,
"no-invalid-regexp": 1,
"no-unused-expressions": 1,
"no-native-reassign": 1,
"no-fallthrough": 1,
"camelcase": 1,
"indent": [1, 2, {"SwitchCase": 0}],
"jsx-quotes": 1,
"max-len": [1, 80, 4, {"ignoreUrls": true}],
"max-depth": [1, 4],
// React rules
"react/jsx-no-undef": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/react-in-jsx-scope": 1,
"react/self-closing-comp": 1,
"react/wrap-multilines": 1,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
// Errors
"no-spaced-func": 2,
"semi-spacing": 2,
"no-var": 2,
"semi": [2, "never"],
"no-use-before-define": 2,
"eol-last": 2,
"quotes": [2, "single"],
"no-trailing-spaces": 2,
"linebreak-style": [2, "unix"],
"no-multiple-empty-lines": [2, {"max": 1}]
}
}