-
Notifications
You must be signed in to change notification settings - Fork 94
/
.eslintrc
65 lines (65 loc) · 1.52 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
{
"parser": "babel-eslint",
"extends": [
"airbnb",
"plugin:flowtype/recommended"
],
"env": {
"browser": false,
"node": true
},
"globals": {
"fetch": true,
"window": true,
"__DEV__": true,
"navigator": true,
"ReactElement": true,
"requestAnimationFrame": true,
"jest": true,
"Iterable": true,
"Action": true,
"FormData": true
},
"plugins": [
"react",
"react-native",
"flowtype"
],
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
},
"rules": {
"comma-dangle": 0,
"indent": [2, 2, {"SwitchCase": 1}],
"no-console": 0,
"camelcase": 0,
"react-native/no-unused-styles": 2,
"no-return-assign": 0,
"react/jsx-boolean-value": 0,
"react/sort-comp": 0,
"arrow-body-style": 0,
"no-nested-ternary": 0,
"react/react-in-jsx-scope": 0,
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"import/extensions": 0,
"import/no-unresolved": 0,
"react/jsx-curly-brace-presence": 0,
"react/jsx-wrap-multilines": "off",
"react/destructuring-assignment": "off",
"max-len": ["error", { "code": 100 }],
"import/prefer-default-export": 0,
"global-require": "off",
"prefer-promise-reject-errors": "off",
"padded-blocks": "off",
"react/no-typos": "off",
"no-underscore-dangle": "warn",
"react/prop-types": ["error", { "ignore": ["componentId"] }]
},
"parserOptions": {
"ecmaFeatures": {
"legacyDecorators": true
}
}
}