-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
44 lines (44 loc) · 1.34 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
{
"parser" : "babel-eslint",
"extends" : [
"standard",
"standard-react"
],
"plugins": [
"babel",
"react",
"promise"
],
"env" : {
"browser" : true
},
"globals" : {
"__DEV__" : false,
"__PROD__" : false,
"__DEBUG__" : false,
"__COVERAGE__" : false,
"__BASENAME__" : false
},
"rules": {
"semi" : [2, "never"],
"max-len": [2, 200, 2],
"generator-star-spacing": 0,
"babel/generator-star-spacing": 1,
"jsx-quotes": [2, "prefer-single"],
"key-spacing": ["off", { "beforeColon": true, "afterColon": true }],
"indent": ["error", 4],
"brace-style": ["off", "allman"],
"camelcase": "off",
"eqeqeq": ["warn", "smart"],
"curly": ["error", "multi-or-nest"],
"yoda": ["error", "always"],
"no-multiple-empty-lines": ["error", { "max": 4, "maxEOF": 1 }],
"object-property-newline": ["error", { "allowMultiplePropertiesPerLine": true }],
"space-in-parens": ["off", "always"],
"no-return-assign": "warn",
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", 4],
"react/jsx-equals-spacing": ["error", "always"],
"react/jsx-curly-spacing": ["error", "always"]
}
}