We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2e2e92c + b278e50 commit c82dcf0Copy full SHA for c82dcf0
eslintrc.json
@@ -14,7 +14,8 @@
14
},
15
16
"plugins": [
17
- "react"
+ "react",
18
+ "react-hooks"
19
],
20
21
"rules": {
@@ -27,6 +28,8 @@
27
28
"react/no-unknown-property": "error",
29
"react/no-unused-prop-types": "error",
30
"react/prop-types": "error",
- "react/react-in-jsx-scope": "error"
31
+ "react/react-in-jsx-scope": "error",
32
+ "react-hooks/rules-of-hooks": "error",
33
+ "react-hooks/exhaustive-deps": "warning"
34
}
35
package.json
@@ -48,7 +48,8 @@
48
"main": "index.js",
49
"peerDependencies": {
50
"eslint": "^8.8.0",
51
- "eslint-plugin-react": "^7.28.0"
+ "eslint-plugin-react": "^7.28.0",
52
+ "eslint-plugin-react-hooks": "^4.6.0"
53
54
"repository": {
55
"type": "git",
0 commit comments