Skip to content

Commit cbc8765

Browse files
authored
chore: add eslint config for react hooks (#188)
1 parent 7c9f409 commit cbc8765

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module.exports = {
44
'eslint:recommended',
55
'plugin:prettier/recommended',
66
'plugin:react/recommended',
7+
'plugin:react-hooks/recommended',
78
],
89
parserOptions: {
910
ecmaVersion: 2020,

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
"eslint-config-prettier": "^6.11.0",
7777
"eslint-plugin-prettier": "^3.1.3",
7878
"eslint-plugin-react": "^7.20.0",
79+
"eslint-plugin-react-hooks": "^4.0.4",
7980
"fs-extra": "^9.0.1",
8081
"get-port": "^5.1.1",
8182
"git-semver-tags": "^4.0.0",

0 commit comments

Comments
 (0)