Skip to content

Commit

Permalink
add eslint-plugin-react-hooks & accompanying rules
Browse files Browse the repository at this point in the history
  • Loading branch information
cwonrails committed Aug 31, 2020
1 parent 7904179 commit 40a5690
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
7 changes: 5 additions & 2 deletions eslintrc.json
Expand Up @@ -14,7 +14,8 @@
},

"plugins": [
"react"
"react",
"react-hooks"
],

"extends": [
Expand All @@ -31,6 +32,8 @@
"react/no-unknown-property": "error",
"react/no-unused-prop-types": "error",
"react/prop-types": "error",
"react/react-in-jsx-scope": "error"
"react/react-in-jsx-scope": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
}
}
13 changes: 7 additions & 6 deletions package.json
Expand Up @@ -11,12 +11,13 @@
"url": "https://github.com/feross/eslint-config-standard-react/issues"
},
"dependencies": {
"eslint-config-standard-jsx": "^8.0.0"
"eslint-config-standard-jsx": "^8.1.0"
},
"devDependencies": {
"eslint": "^6.2.2",
"eslint-plugin-react": "^7.6.1",
"tape": "^4.8.0"
"eslint": "^7.7.0",
"eslint-plugin-react": "^7.20.6",
"eslint-plugin-react-hooks": "^4.1.0",
"tape": "^5.0.1"
},
"homepage": "https://github.com/feross/eslint-config-standard-react",
"keywords": [
Expand Down Expand Up @@ -50,8 +51,8 @@
"license": "MIT",
"main": "index.js",
"peerDependencies": {
"eslint": ">=6.2.2",
"eslint-plugin-react": ">=7.6.1"
"eslint": ">=7.7.0",
"eslint-plugin-react": ">=7.20.6"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 40a5690

Please sign in to comment.