-
Notifications
You must be signed in to change notification settings - Fork 46.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot upgrade eslint
to v9 due to eslint-plugin-react-hooks
peer dependancies
#30932
Comments
Seems like the changes have been added to the library here but a new version is yet to be released on NPM |
You can install the eslint-plugin-react-hooks RC to get around this for now.
|
That doesn't work for me unfortunately. Any idea?
|
@nikolailehbrink your issue is with eslint-plugin-import. I don’t use it personally, but you could try see if they have an rc/beta/preview branch with eslint 9 support. |
Which has implied, * Drop eslint-plugin-import in favor of eslint-plugin-import-x Since the eslint-plugin-import support for ESLint 9 is kind of a blocker for such an update at this moment. See import-js/eslint-plugin-import#2948 * Update eslint-plugin-react-hooks to an RC version For moving this update on without waiting until the support reach the @latest version. See facebook/react#30932 (comment) As commented at import-js/eslint-plugin-import#2948 (comment), > the ESLint plugin ecosystem is getting harder and harder to maintain, > and things get worse during major version upgrades.
@nikolailehbrink you can also use eslint plugin perfectionist as it has a similar feature of import ordering to eslint-plugin-import, and supports eslint v9 |
thanks @bsal649, whilst using the release candidate as work around does indeed fix the issue (and may be useful for other projects), RCs seem to be updated daily. I'm mainly worried about platform stability and ideally require a stable release version for our application. |
I believe this related to #28313 |
Fixed in #28773. Will be released alongside React 19 as stable. You can use it today by install |
eslint-plugin-react-hooks
does not currently support the latest version oneslint
,[email protected]
React version: 18.3.1
Steps To Reproduce
eslint
@ 8.56.0eslint-plugin-react-hooks
@ 4.6.2eslint
@ 9.10.0Link to code example:
The current behavior
cannot install due to
eslint-plugin-react-hooks
only havingeslint
version 8 as a peer dependancy.npm i output:
The expected behavior
ES lint is upgraded successfully
The text was updated successfully, but these errors were encountered: