-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
61 lines (61 loc) · 1.24 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
{
"parser": "babel-eslint",
"env": {
"browser": true
},
"extends": [
"standard",
"standard-react",
"prettier",
"prettier/flowtype",
"prettier/react"
],
"plugins": [
"flowtype"
],
"rules": {
"comma-dangle" : [0, "always-multiline"],
"flowtype/require-return-type": [
0,
"always",
{
"annotateUndefined": "never"
}
],
"flowtype/space-after-type-colon": [
1,
"always"
],
"flowtype/space-before-type-colon": [
1,
"never"
],
"flowtype/type-id-match": [
1,
"((^([A-Z][a-z0-9]+)+T$)|(^Props$)|(^DefaultProps$)|(^State$))"
],
"no-console": [1, {"allow": ["warn", "error"]}],
"no-extra-semi": 2,
"react/jsx-boolean-value": [0, "always"],
"react/jsx-no-bind": [2, {
"ignoreRefs": false,
"allowArrowFunctions": true,
"allowBind": false
}],
"react/self-closing-comp": 2,
"semi": [2, "never"],
"space-infix-ops": "off"
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
},
"globals": {
"fetch": false,
"SyntheticEvent": false,
"SyntheticKeyboardEvent": false,
"test": false,
"expect": false
}
}