forked from yandexmobile/react-native-appmetrica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
73 lines (71 loc) · 1.78 KB
/
.eslintrc.json
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
68
69
70
71
72
73
{
"extends": [
"eslint:recommended",
"plugin:flowtype/recommended",
"plugin:react/recommended"
],
"rules": {
"array-bracket-spacing": ["error", "always"],
"comma-dangle": ["error", "always-multiline"],
"eol-last": ["error", "always"],
"indent": [
"error",
4,
{"SwitchCase": 1}
],
"linebreak-style": [
"error",
"unix"
],
"no-empty": ["error", {"allowEmptyCatch": true}],
"no-multiple-empty-lines": ["error", {"max": 1, "maxBOF": 0 }],
"no-var": ["error"],
"object-curly-spacing": ["error", "always"],
"quotes": ["error", "single"],
"semi": ["error", "always" ],
"space-infix-ops": "error",
"react/jsx-key": "error",
"react/jsx-no-bind": ["error", {
"ignoreRefs": true
}],
"react/no-unused-prop-types": "error",
"react/prefer-es6-class": "error",
"react/prop-types": [
"error", {
"ignore": [
"children",
"dispatch"
]
}
],
"react-native/no-inline-styles": "error",
"react-native/no-unused-styles": "error",
"react-native/split-platform-components": "warn"
},
"env": {
"es6": true,
"node": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
},
"react": {
"pragma": "React",
"version": "16.0.0"
}
},
"plugins": [
"flowtype",
"react",
"react-native"
]
}