Skip to content
This repository was archived by the owner on Jun 16, 2023. It is now read-only.

Commit 3bb9a64

Browse files
committed
chore(lint): more lint checks
1 parent 82f725a commit 3bb9a64

File tree

3 files changed

+100
-128
lines changed

3 files changed

+100
-128
lines changed

.eslintrc

+36-16
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,68 @@
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+
}

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
"devDependencies": {
1616
"@commitlint/cli": "^6.1.0",
1717
"@commitlint/config-conventional": "^6.1.0",
18-
"babel-eslint": "^8.0.2",
19-
"eslint": "^4.12.0",
18+
"babel-eslint": "^8.2.1",
19+
"eslint": "^4.17.0",
2020
"eslint-plugin-flowtype": "^2.46.2",
21-
"eslint-plugin-import": "^2.7.0",
22-
"eslint-plugin-react": "^7.3.0",
21+
"eslint-plugin-import": "^2.11.0",
22+
"eslint-plugin-react": "^7.6.1",
2323
"eslint-plugin-react-native": "^3.2.0",
2424
"generate-changelog": "1.7.0",
2525
"husky": "^0.14.3",
@@ -28,6 +28,7 @@
2828
"minimist": "1.2.0",
2929
"pre-commit": "^1.2.2",
3030
"prettier": "^1.12.0",
31+
"react": "16.3.1",
3132
"react-native": "^0.55.2",
3233
"simple-git": "1.89.0"
3334
},

0 commit comments

Comments
 (0)