-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
67 lines (67 loc) · 1.51 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
{
"parser": "babel-eslint",
"extends": [
"airbnb",
"prettier",
"prettier/flowtype",
"prettier/react"
],
"plugins": [
"flowtype"
],
"rules": {
"comma-dangle" : [2, "always-multiline"],
"max-len": [1, 120, 2, {"ignoreComments": true}],
"semi": [2, "never"],
"new-cap": [2, { "newIsCap": true, "capIsNewExceptions": ["Theme"] }],
"no-use-before-define": 0,
"no-underscore-dangle": 0,
"import/no-extraneous-dependencies": [2, {
"devDependencies": true,
"optionalDependencies": false
}],
"flowtype/require-return-type": [
0,
"always",
{
"annotateUndefined": "never"
}
],
"flowtype/space-after-type-colon": [
1,
"always",
{
"allowLineBreak": true
}
],
"flowtype/space-before-type-colon": [
1,
"never"
],
"flowtype/type-id-match": [
1,
"(^([A-Z][a-z0-9]+)+T$)"
],
"flowtype/define-flow-type": 1,
"react/jsx-key": 2,
"react/jsx-handler-names": [1, {
"eventHandlerPrefix": "handle",
"eventHandlerPropPrefix": "on"
}],
"react/no-direct-mutation-state": [2, "always"],
"react/prefer-stateless-function": 1,
"react/jsx-filename-extension": [1, { "extensions": [".js"] }],
"react/sort-comp": 0
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
},
"globals": {
"test": true,
"expect": true,
"document": true,
"window": true
}
}