forked from Bynder/react-formulation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
39 lines (38 loc) · 980 Bytes
/
.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
{
"parser": "babel-eslint",
"extends": ["airbnb"],
"plugins": [
"flowtype"
],
"settings": {
"import/resolver": {
"babel-module": {}
},
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
},
"globals" : {
"window": true,
"IS_PRODUCTION": true,
"React": true,
"Generator": true
},
"rules" : {
"indent": ["error", 4, { "SwitchCase": 1 }],
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", 4],
"max-len": ["error", 120],
"react/no-array-index-key": "off",
"react/require-default-props": "off",
/* FLOWTYPE RULES */
"flowtype/define-flow-type": 1,
"flowtype/space-before-type-colon": 0,
"flowtype/use-flow-type": 1,
"flowtype/valid-syntax": 1,
"flowtype/type-id-match": [
2,
"^([A-Z]+[a-z0-9A-Z]*)$"
]
}
}