Skip to content

Commit

Permalink
Downgrade eslint-plugin-react-hooks
Browse files Browse the repository at this point in the history
The latest release of eslint-plugin-react-hooks incorrectly flags uses of hooks as occurring in a loop if a component function body contains a loop.

Downgrading to version 5.0.0 is a workaround until the React team publishes a release with the fix in facebook/react#28714 (merged but not yet released).

See facebook/react#31687
  • Loading branch information
tschaub committed Jan 8, 2025
1 parent 2c40297 commit e85d908
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.37.3",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-react-hooks": "5.0.0",
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
"globals": "^15.14.0",
"prettier": "^3.4.2"
Expand Down

0 comments on commit e85d908

Please sign in to comment.