React wrong lint error when checking hooks (due to outdated hooks lint package) [manually upgraded lint versions] #3742
Labels
blocked: retry with latest
Retry with latest release or head.
outdated
scope: react
Issues related to React support for Nx
type: bug
Current Behavior
Now I understand, that officially nx did not yet upgrade the lint version, but I just tried it out anyways and it seems to work fine by just manually upgrading the versions in the package json (more infos on the changed versions in the section below).
This issue is meant as kind of a heads up if the maintainers decide to upgrade the lint versions in the future 🙌 If you think this is too early, you can close this right away.
So anyways, there is a wrong React hooks lint error. There is already a merged PR on their repo: facebook/react#19751
Updating the dependency
eslint-plugin-react-hooks
in the package@nrwl/react
to at least4.1.1
would fix the issue.Expected Behavior
hooks with generic parameters should be linted correctly
Steps to Reproduce
Create a react app/lib with nx, update all eslint versions manually, create a custom react hook and use generics in it.
Environment
manually updated eslint versions:
The text was updated successfully, but these errors were encountered: