-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
51 lines (51 loc) · 1.11 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
{
"parser": "babel-eslint",
"env": {
"node": true,
"browser": true,
"mocha": true,
"es6": true
},
"globals": {
},
"plugins": [
"flowtype",
"react"
],
"settings": {
"react": {
"pragma": "React",
"version": "15.4"
},
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"rules": {
"quotes": [2, "single", {"avoidEscape": true, "allowTemplateLiterals": true}],
"semi": [2, "never"],
"indent": [2, 2, {"SwitchCase": 1}],
"no-var": [2],
"prefer-const": [1],
"no-duplicate-imports": [2],
"arrow-body-style": [2, "as-needed"],
"arrow-parens": [2, "as-needed"],
"prefer-arrow-callback": ["error", { "allowNamedFunctions": true }],
"flowtype/require-parameter-type": 0,
"flowtype/require-return-type": 0,
"flowtype/space-after-type-colon": [
1,
"always"
],
"flowtype/space-before-type-colon": [
1,
"never"
],
"flowtype/type-id-match": [
1,
"^([A-Z][a-z0-9\\$]+)+$"
],
"react/prop-types": 0
}
}