Skip to content

Commit

Permalink
Merge pull request #75 from barroudjo/eslint-plugin-react-hooks
Browse files Browse the repository at this point in the history
Eslint plugin react hooks
  • Loading branch information
LinusU committed Dec 15, 2022
2 parents 2e2e92c + b278e50 commit c82dcf0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions eslintrc.json
Expand Up @@ -14,7 +14,8 @@
},

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

"rules": {
Expand All @@ -27,6 +28,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": "warning"
}
}
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -48,7 +48,8 @@
"main": "index.js",
"peerDependencies": {
"eslint": "^8.8.0",
"eslint-plugin-react": "^7.28.0"
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.6.0"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit c82dcf0

Please sign in to comment.