-
Notifications
You must be signed in to change notification settings - Fork 49k
Closed
Labels
Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug
Description
eslint-plugin-react-hooks
does not currently support the latest version on eslint
, [email protected]
React version: 18.3.1
Steps To Reproduce
- create a new react application
- install
eslint
@ 8.56.0 - install
eslint-plugin-react-hooks
@ 4.6.2 - try to install
eslint
@ 9.10.0
Link to code example:
The current behavior
cannot install due to eslint-plugin-react-hooks
only having eslint
version 8 as a peer dependancy.
npm i output:
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/eslint
npm error dev eslint@"^9.10.0" from the root project
npm error peer eslint@"^7.5.0 || ^8.0.0 || ^9.0.0" from @babel/[email protected]
npm error node_modules/@babel/eslint-parser
npm error dev @babel/eslint-parser@"^7.25.1" from the root project
npm error 6 more (@eslint-community/eslint-utils, ...)
npm error
npm error Could not resolve dependency:
npm error peer eslint@"^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" from [email protected]
npm error node_modules/eslint-plugin-react-hooks
npm error dev eslint-plugin-react-hooks@"^4.6.2" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/eslint
npm error peer eslint@"^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" from [email protected]
npm error node_modules/eslint-plugin-react-hooks
npm error dev eslint-plugin-react-hooks@"^4.6.2" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
The expected behavior
ES lint is upgraded successfully
GermanBluefox, Jens-Schoen, knokit, harveyhq, fuhrmanator and 16 more
Metadata
Metadata
Assignees
Labels
Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug