Skip to content

Commit

Permalink
feat: add react hooks plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
hannoeru committed Nov 24, 2021
1 parent 194a8b0 commit 78013e7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/react/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
module.exports = {
extends: [
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'@hannoeru/eslint-config-ts',
],
settings: {
react: {
version: '17.0',
version: 'detect',
},
},
rules: {
Expand Down
3 changes: 2 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
},
"dependencies": {
"@hannoeru/eslint-config-ts": "workspace:*",
"eslint-plugin-react": "^7.27.1"
"eslint-plugin-react": "^7.27.1",
"eslint-plugin-react-hooks": "^4.3.0"
},
"devDependencies": {
"eslint": "^8.3.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 78013e7

Please sign in to comment.