Skip to content

Commit

Permalink
Chore: update configurations and dependencies for eslint-plugin-insta…
Browse files Browse the repository at this point in the history
…work

- initially disable newly breaking rules
- add resolution for fsevents to prevent build errors in NodeJS 12 - see fsevents/fsevents#274
  • Loading branch information
Daniel Schaffer committed Jan 27, 2020
1 parent cc2ccb7 commit 45c5ad3
Show file tree
Hide file tree
Showing 3 changed files with 1,550 additions and 601 deletions.
36 changes: 28 additions & 8 deletions .eslintrc
@@ -1,10 +1,12 @@
{
"extends": ["plugin:instawork/recommended", "prettier"],
"plugins": ["instawork", "prettier"],
"extends": [
"plugin:instawork/recommended"
],
"plugins": [
"instawork"
],
"rules": {
"prettier/prettier": "error",
"instawork/props-no-function": "error",
"no-underscore-dangle": ["error"],
"import/no-extraneous-dependencies": [
"warn",
{
Expand All @@ -24,21 +26,39 @@
}
],
"import/no-internal-modules": [
"warn", {
"warn",
{
"allow": [
"hyperview/**",
"react-native/Libraries/StyleSheet/StyleSheetTypes"
]
}
]
],
"max-len": [
"warn",
{
"code": 100
}
],
"import/no-cycle": "off",
"lines-between-class-members": "off",
"no-else-return": "off",
"no-restricted-globals": "off",
"prefer-destructuring": "off",
"react/destructuring-assignment": "off",
"react/jsx-sort-props": "off",
"react/no-access-state-in-setstate": "off",
"sort-keys": "off"
},
"overrides": [
{
"files": [ "**/types.js" ],
"files": [
"**/types.js"
],
"rules": {
"no-use-before-define": "off",
"max-len": "off"
}
}
]
}
}
21 changes: 13 additions & 8 deletions package.json
Expand Up @@ -50,27 +50,29 @@
"react-native-keyboard-aware-scrollview": "^2.0.0"
},
"devDependencies": {
"@babel/core": "7.4.5",
"@babel/cli": "7.4.4",
"@babel/preset-env": "7.4.5",
"@babel/runtime": "7.4.5",
"@storybook/addon-actions": "3.3.15",
"@storybook/addon-storyshots": "3.3.15",
"@storybook/react-native": "3.3.15",
"babel-cli": "6.26.0",
"babel-eslint": "8.2.1",
"babel-eslint": "10.0.3",
"babel-plugin-module-resolver": "3.0.0",
"babel-preset-react-native": "4.0.0",
"chokidar": "2.1.2",
"eslint": "4.17.0",
"eslint-config-prettier": "3.3.0",
"eslint-plugin-instawork": "0.0.2",
"eslint-plugin-prettier": "3.0.0",
"eslint": "5.16.0",
"eslint-import-resolver-babel-module": "5.1.0",
"eslint-plugin-instawork": "0.4.0",
"flow-bin": "0.61.0",
"glob": "7.1.2",
"http-server": "0.11.1",
"humps": "2.0.1",
"husky": "1.2.1",
"jest": "23.1.0",
"mkdirp": "0.5.1",
"prettier": "1.15.3",
"pretty-quick": "1.8.0",
"prettier": "1.17.1",
"pretty-quick": "1.11.0",
"react": "16.6.0",
"react-dom": "16.2.1",
"react-native": "0.52.2",
Expand All @@ -86,5 +88,8 @@
"modulePathIgnorePatterns": [
"./demo/"
]
},
"resolutions": {
"fsevents": "^1.2.11"
}
}

0 comments on commit 45c5ad3

Please sign in to comment.