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

Commit

Permalink
chore(lint): more lint checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jgfidelis committed Apr 15, 2018
1 parent 82f725a commit 3bb9a64
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 128 deletions.
52 changes: 36 additions & 16 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,48 +1,68 @@
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"jest": true,
"es6": true
"es6": true,
},
"parser": "babel-eslint",
"plugins": [
"react",
"react-native",
"flowtype",
"import"
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
},
"plugins": [
"react",
"react-native",
"flowtype"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/errors"
],
"rules": {
"comma-dangle": [2, "always-multiline"],
"quotes": [2, "single", { "allowTemplateLiterals": true }],
"react/prop-types": 0,
"no-case-declarations": 0,
"react/jsx-no-bind": 0,
"react/display-name": 0,
"new-cap": 0,
"react-native/no-unused-styles": 2,
"react-native/no-inline-styles": 1,
"react-native/split-platform-components": 0,
"react-native/no-inline-styles": 0,
"react-native/no-color-literals": 0,
"no-unexpected-multiline": 0,
"no-class-assign": 1,
"no-console": 1,
"no-console": 2,
"object-curly-spacing": [1, "always"],
"no-unused-vars": ["error", { "ignoreRestSiblings": true }],
"flowtype/define-flow-type": 1,
"flowtype/use-flow-type": 1
"flowtype/use-flow-type": 1,
"import/first": 2,
"import/default": 0,
"no-unused-vars": ["error", { "ignoreRestSiblings": true }],
"import/named": 0,
"import/namespace": [2, { "allowComputed": true }],
"no-extra-boolean-cast": 0,
"import/no-duplicates": 2
},
"settings": {
"import/resolver": {
"node": {
"extensions":[
".js",
".android.js",
".ios.js",
".json"
]
}
}
},
"globals": {
"__DEV__": true,
"device": true,
"element": true,
"by": true,
"__DEV__": true
}
}
}
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"devDependencies": {
"@commitlint/cli": "^6.1.0",
"@commitlint/config-conventional": "^6.1.0",
"babel-eslint": "^8.0.2",
"eslint": "^4.12.0",
"babel-eslint": "^8.2.1",
"eslint": "^4.17.0",
"eslint-plugin-flowtype": "^2.46.2",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-react": "^7.3.0",
"eslint-plugin-import": "^2.11.0",
"eslint-plugin-react": "^7.6.1",
"eslint-plugin-react-native": "^3.2.0",
"generate-changelog": "1.7.0",
"husky": "^0.14.3",
Expand All @@ -28,6 +28,7 @@
"minimist": "1.2.0",
"pre-commit": "^1.2.2",
"prettier": "^1.12.0",
"react": "16.3.1",
"react-native": "^0.55.2",
"simple-git": "1.89.0"
},
Expand Down

0 comments on commit 3bb9a64

Please sign in to comment.