-
Notifications
You must be signed in to change notification settings - Fork 36
/
.eslintrc
71 lines (71 loc) · 1.73 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
{
"parser": "babel-eslint",
"extends": [
"xo/esnext",
"xo-react",
"plugin:flowtype/recommended"
],
"env": {
"node": true,
"browser": true
},
"settings": {
"import/core-modules": [
"electron",
"atom"
]
},
"plugins": [
"babel",
"react",
"flowtype",
"promise",
"import"
],
"rules": {
"semi": ["error", "never"],
"comma-dangle": ["error", "always-multiline"],
"arrow-parens": 0,
"babel/arrow-parens": ["error", "as-needed"],
"indent": ["error", "tab", {"SwitchCase": 1}],
"react/sort-comp": ["error", {
"order": [
"type-annotations",
"static-methods",
"lifecycle",
"everything-else",
"render"
]
}],
"react/forbid-component-props": 0,
"flowtype/boolean-style": ["error", "bool"],
"flowtype/define-flow-type": "error",
"flowtype/semi": ["error", "always"],
"flowtype/space-after-type-colon": ["error", "always"],
"flowtype/union-intersection-spacing": ["error", "always"],
"flowtype/use-flow-type": "error",
"flowtype/valid-syntax": "error",
"import/default": "error",
"import/export": "error",
"import/extensions": ["error", {
"js": "never",
"json": "never",
"jsx": "never"
}],
"import/first": "error",
"import/named": "error",
"import/namespace": ["error", {"allowComputed": true}],
"import/no-absolute-path": "error",
"import/no-dynamic-require": "error",
"import/no-webpack-loader-syntax": "error",
"import/newline-after-import": "error",
"import/no-amd": "error",
"import/no-extraneous-dependencies": "error",
"import/no-mutable-exports": "error",
"import/no-named-as-default-member": "error",
"import/no-named-as-default": "error",
"import/order": "error",
"import/no-unassigned-import": "error",
"promise/param-names": "error"
}
}