/
.eslintrc.json
43 lines (41 loc) · 1.04 KB
/
.eslintrc.json
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
{
"parser": "babel-eslint",
"extends": "airbnb",
"env": {
"browser": true,
"node": true
},
"globals": {
"ReactClass": true,
"SyntheticMouseEvent": true
},
"rules": {
"linebreak-style": ["error", "windows"],
"indent": ["error", 4, {
"SwitchCase": 1
}],
"no-underscore-dangle": ["off"],
"no-plusplus": ["off"],
"arrow-parens": ["error", "as-needed", {
"requireForBlockBody": false
}],
"flowtype-errors/show-errors": ["error"],
"react/jsx-first-prop-new-line": ["off"],
"react/jsx-closing-bracket-location": ["off"],
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", 4],
"react/jsx-filename-extension": ["error", {
"extensions": [".js", ".jsx"]
}]
},
"plugins": [
"flowtype-errors",
"flowtype",
"import"
],
"settings": {
"import/core-modules": [
"electron"
]
}
}