1
1
{
2
+ "parser": "babel-eslint",
2
3
"env": {
3
4
"browser": true,
4
5
"node": true,
5
6
"jest": true,
6
- "es6": true
7
+ "es6": true,
7
8
},
8
- "parser": "babel-eslint",
9
+ "plugins": [
10
+ "react",
11
+ "react-native",
12
+ "flowtype",
13
+ "import"
14
+ ],
9
15
"parserOptions": {
10
16
"ecmaVersion": 6,
11
17
"sourceType": "module",
12
18
"ecmaFeatures": {
13
19
"modules": true
14
20
}
15
21
},
16
- "plugins": [
17
- "react",
18
- "react-native",
19
- "flowtype"
20
- ],
21
22
"extends": [
22
23
"eslint:recommended",
23
24
"plugin:react/recommended",
25
+ "plugin:import/errors"
24
26
],
25
27
"rules": {
26
28
"comma-dangle": [2, "always-multiline"],
27
29
"quotes": [2, "single", { "allowTemplateLiterals": true }],
28
30
"react/prop-types": 0,
31
+ "no-case-declarations": 0,
29
32
"react/jsx-no-bind": 0,
30
33
"react/display-name": 0,
31
34
"new-cap": 0,
32
35
"react-native/no-unused-styles": 2,
33
- "react-native/no-inline-styles": 1,
36
+ "react-native/split-platform-components": 0,
37
+ "react-native/no-inline-styles": 0,
34
38
"react-native/no-color-literals": 0,
39
+ "no-unexpected-multiline": 0,
35
40
"no-class-assign": 1,
36
- "no-console": 1 ,
41
+ "no-console": 2 ,
37
42
"object-curly-spacing": [1, "always"],
38
- "no-unused-vars": ["error", { "ignoreRestSiblings": true }],
39
43
"flowtype/define-flow-type": 1,
40
- "flowtype/use-flow-type": 1
44
+ "flowtype/use-flow-type": 1,
45
+ "import/first": 2,
46
+ "import/default": 0,
47
+ "no-unused-vars": ["error", { "ignoreRestSiblings": true }],
48
+ "import/named": 0,
49
+ "import/namespace": [2, { "allowComputed": true }],
50
+ "no-extra-boolean-cast": 0,
51
+ "import/no-duplicates": 2
52
+ },
53
+ "settings": {
54
+ "import/resolver": {
55
+ "node": {
56
+ "extensions":[
57
+ ".js",
58
+ ".android.js",
59
+ ".ios.js",
60
+ ".json"
61
+ ]
62
+ }
63
+ }
41
64
},
42
65
"globals": {
43
- "__DEV__": true,
44
- "device": true,
45
- "element": true,
46
- "by": true,
66
+ "__DEV__": true
47
67
}
48
- }
68
+ }
0 commit comments