Skip to content

Commit

Permalink
Add react hooks eslint plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
aurorascharff committed Mar 8, 2025
1 parent b647652 commit 7d7541f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"eslint-config-prettier",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended-legacy",
"plugin:import/recommended",
"plugin:jsx-a11y/recommended",
"prettier",
Expand All @@ -40,6 +41,8 @@
"react-compiler/react-compiler": "error",
"spaced-comment": "warn",
"quotes": ["warn", "single"],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"no-console": "warn",
"no-redeclare": "warn",
"react/display-name": "error",
Expand Down
23 changes: 19 additions & 4 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"eslint-plugin-autofix": "^1.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-react-compiler": "^19.0.0-beta-40c6c23-20250301",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-storybook": "^0.11.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down

0 comments on commit 7d7541f

Please sign in to comment.