-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
76 lines (72 loc) · 1.63 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
65
66
67
68
69
70
71
72
73
74
75
76
{
"globals": {
"__DEV__",
"__DEVTOOLS__"
},
"plugins": [
"react"
],
"parser": "babel-eslint",
"env": {
"node": true,
"browser": true,
"es6": true,
"jasmine": true
},
"ecmaFeatures": {
"jsx": true,
"modules": true,
"decorators": true,
"object-shorthand": true,
"prefer-const": true,
"spread": true
},
"rules": {
// Ignore Rules
"strict": 0,
"no-underscore-dangle": 0,
"no-mixed-requires": 0,
"no-process-exit": 0,
"no-warning-comments": 0,
"curly": 0,
"no-multi-spaces": 0,
"new-cap": 0,
"key-spacing": 0, // I don't want to ignore this, but es6 killed it,
"no-loop-func": 0,
// Warnings
"no-debugger": 1,
"no-empty": 1,
"no-invalid-regexp": 1,
"no-unused-expressions": 1,
"no-native-reassign": 1,
"no-fallthrough": 1,
"handle-callback-err": 1,
"camelcase": 1,
// Errors
"no-undef": 2,
"no-dupe-keys": 2,
"no-empty-character-class": 2,
"no-self-compare": 2,
"valid-typeof": 2,
"no-unused-vars": 2,
"no-shadow-restricted-names": 2,
"no-new-require": 2,
"no-mixed-spaces-and-tabs": 2,
// Stylistic errors
"no-spaced-func": 2,
"semi-spacing": 2,
"quotes": [2, "single", "avoid-escape"],
"jsx-quotes": 1,
// Plugin rules
"react/jsx-no-undef": 1,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-multi-comp": 1,
"react/prop-types": 1,
"react/react-in-jsx-scope": 1,
"react/self-closing-comp": 1,
"react/wrap-multilines": 1
}
}