unmet peer eslint@^8.56.0: found 9.5.0
Describe the bug
WARN Issues with peer dependencies found . └─┬ @antfu/eslint-config 2.21.1 ├─┬ @stylistic/eslint-plugin 2.3.0 │ └─┬ @stylistic/eslint-plugin-plus 2.3.0 │ └─┬ @typescript-eslint/utils 7.14.1 │ └── ✕ unmet peer eslint@^8.56.0: found 9.5.0 ├─┬ @typescript-eslint/eslint-plugin 7.14.1 │ ├── ✕ unmet peer eslint@^8.56.0: found 9.5.0 │ └─┬ @typescript-eslint/type-utils 7.14.1 │ └── ✕ unmet peer eslint@^8.56.0: found 9.5.0 ├─┬ @typescript-eslint/parser 7.14.1 │ └── ✕ unmet peer eslint@^8.56.0: found 9.5.0 └─┬ eslint-plugin-unused-imports 3.2.0 └── ✕ unmet peer eslint@8: found 9.5.0
Reproduction
unmet peer eslint@^8.56.0: found 9.5.0
System Info
WARN Issues with peer dependencies found
.
└─┬ @antfu/eslint-config 2.21.1
├─┬ @stylistic/eslint-plugin 2.3.0
│ └─┬ @stylistic/eslint-plugin-plus 2.3.0
│ └─┬ @typescript-eslint/utils 7.14.1
│ └── ✕ unmet peer eslint@^8.56.0: found 9.5.0
├─┬ @typescript-eslint/eslint-plugin 7.14.1
│ ├── ✕ unmet peer eslint@^8.56.0: found 9.5.0
│ └─┬ @typescript-eslint/type-utils 7.14.1
│ └── ✕ unmet peer eslint@^8.56.0: found 9.5.0
├─┬ @typescript-eslint/parser 7.14.1
│ └── ✕ unmet peer eslint@^8.56.0: found 9.5.0
└─┬ eslint-plugin-unused-imports 3.2.0
└── ✕ unmet peer eslint@8: found 9.5.0
Used Package Manager
pnpm
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guide.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [X] The provided reproduction is a minimal reproducible of the bug.
Contributions
- [X] I am willing to submit a PR to fix this issue
- [X] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)
Upstream bug I guess https://github.com/typescript-eslint/typescript-eslint/pull/9413
Workaround:
Add to package.json:
"pnpm": {
"peerDependencyRules": {
"allowedVersions": {
"eslint": "9"
}
}
}
Works better with 2.22.0.beta.3. But still one dependency issue with eslint-plugin-import-x:
After updating to 2.22.0, I got the similar issue:
same issue with eslint 9
There is nothing we can do on our side but wait for the ecosystem, unfortunately. You you either enforce the version with overrides, or ignore the warning.
eslint-plugin-import-x has new version with eslint 9 support.
Was this resolved in https://github.com/antfu/eslint-config/commit/794424466eb10d88de1e060bad23f6416703e943 ? If not, what does remain?
in my case, it's working 👍
There is nothing we can do on our side but wait for the ecosystem, unfortunately. You you either enforce the version with overrides, or ignore the warning.
We'll just have to ignore it.
eslint-plugin-import-x still use typescript-eslint/utils 7.16.1
Only eslint-pluin-import-x still remain. SukkaW says tring to backport to import-js/eslint-plugin-import. What do you think, we would able to use it?
In the meantime @anfu/eslint-config safe to use with eslint 9?