11{
2+ "parser": "babel-eslint",
23 "env": {
34 "browser": true,
45 "node": true,
56 "jest": true,
6- "es6": true
7+ "es6": true,
78 },
8- "parser": "babel-eslint",
9+ "plugins": [
10+ "react",
11+ "react-native",
12+ "flowtype",
13+ "import"
14+ ],
915 "parserOptions": {
1016 "ecmaVersion": 6,
1117 "sourceType": "module",
1218 "ecmaFeatures": {
1319 "modules": true
1420 }
1521 },
16- "plugins": [
17- "react",
18- "react-native",
19- "flowtype"
20- ],
2122 "extends": [
2223 "eslint:recommended",
2324 "plugin:react/recommended",
25+ "plugin:import/errors"
2426 ],
2527 "rules": {
2628 "comma-dangle": [2, "always-multiline"],
2729 "quotes": [2, "single", { "allowTemplateLiterals": true }],
2830 "react/prop-types": 0,
31+ "no-case-declarations": 0,
2932 "react/jsx-no-bind": 0,
3033 "react/display-name": 0,
3134 "new-cap": 0,
3235 "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,
3438 "react-native/no-color-literals": 0,
39+ "no-unexpected-multiline": 0,
3540 "no-class-assign": 1,
36- "no-console": 1 ,
41+ "no-console": 2 ,
3742 "object-curly-spacing": [1, "always"],
38- "no-unused-vars": ["error", { "ignoreRestSiblings": true }],
3943 "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+ }
4164 },
4265 "globals": {
43- "__DEV__": true,
44- "device": true,
45- "element": true,
46- "by": true,
66+ "__DEV__": true
4767 }
48- }
68+ }
0 commit comments