Skip to content

Commit

Permalink
feat(react): rules of hooks (#117)
Browse files Browse the repository at this point in the history
Co-authored-by: nnmax <hi.max@foxemail.com>
  • Loading branch information
nnmax and nnmax committed Sep 19, 2022
1 parent e9f0988 commit ae904df
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/react/index.js
@@ -1,6 +1,7 @@
module.exports = {
extends: [
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'@antfu/eslint-config-ts',
],
settings: {
Expand Down
3 changes: 2 additions & 1 deletion packages/react/package.json
Expand Up @@ -20,7 +20,8 @@
},
"dependencies": {
"@antfu/eslint-config-ts": "workspace:*",
"eslint-plugin-react": "^7.31.1"
"eslint-plugin-react": "^7.31.1",
"eslint-plugin-react-hooks": "^4.6.0"
},
"devDependencies": {
"eslint": "^8.23.0",
Expand Down
11 changes: 11 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ae904df

Please sign in to comment.