Closed johnhunter closed 2 months ago
We support eslint@9 but the peerDependencies do not include it. This causes npm import failure when using current npm versions.
eslint@9
peerDependencies
Steps to repro:
eslint-plugin-react@7.34.1
Expected: eslint-plugin-react install ok
Actual: eslint-plugin-react install fails with
npm ERR! Could not resolve dependency: npm ERR! peer eslint@"^3 || ^4 || ^5 || ^6 || ^7 || ^8" from eslint-plugin-react@7.34.1 npm ERR! node_modules/eslint-plugin-react npm ERR! dev eslint-plugin-react@"7.34.1" from the root project
Environment: node: v20.12.2 npm: 10.5.0
The fail will downgrade to a warning if npm legacy-peer-deps is used, but we should address the root cause.
eslint-plugin-react should install ok
v7.34.1
v9.0.0
v20.12.2
Please wait to file PRs until a maintainer tells you it's desired. Your PR is a duplicate of #3726, and this issue is a duplicate of #3699.
Is there an existing issue for this?
Description Overview
We support
eslint@9
but thepeerDependencies
do not include it. This causes npm import failure when using current npm versions.Steps to repro:
eslint@9
eslint-plugin-react@7.34.1
Expected: eslint-plugin-react install ok
Actual: eslint-plugin-react install fails with
Environment: node: v20.12.2 npm: 10.5.0
The fail will downgrade to a warning if npm legacy-peer-deps is used, but we should address the root cause.
Expected Behavior
eslint-plugin-react should install ok
eslint-plugin-react version
v7.34.1
eslint version
v9.0.0
node version
v20.12.2