-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
50 lines (50 loc) · 1.09 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
{
"parser": "babel-eslint",
"plugins": ["react", "flowtype"],
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"env": {
"node": true,
"browser": true,
"es6": true,
"jest": true
},
"globals": {
"Generator": true,
"__DEV__": true
},
"rules": {
"flowtype/require-valid-file-annotation": [2, "always"],
"flowtype/define-flow-type": 1,
"no-unused-vars": ["warn", { "ignoreRestSiblings": true, "argsIgnorePattern": "^action", "caughtErrors": "none" }],
"react/display-name": 0,
"react/prop-types": 0,
"react/jsx-no-duplicate-props": 0,
"no-prototype-builtins": 0,
"no-empty": 0,
"no-extra-semi": 0,
"no-case-declarations": 0,
"no-fallthrough": 0,
"no-dupe-keys": 0,
"no-useless-catch": 0,
"react/no-unescaped-entities": 0,
"no-useless-escape": 0
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
},
"settings": {
"react": {
"version": "detect"
},
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
}
}