eslint-config icon indicating copy to clipboard operation
eslint-config copied to clipboard

unmet peer eslint@^8.56.0: found 9.5.0

Open liu-xinhui opened this issue 1 year ago • 2 comments

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!)

liu-xinhui avatar Jun 26 '24 15:06 liu-xinhui

Upstream bug I guess https://github.com/typescript-eslint/typescript-eslint/pull/9413

Dimava avatar Jun 27 '24 07:06 Dimava

Workaround:

Add to package.json:

  "pnpm": {
    "peerDependencyRules": {
      "allowedVersions": {
        "eslint": "9"
      }
    }
  }

shimarulin avatar Jul 01 '24 15:07 shimarulin

Works better with 2.22.0.beta.3. But still one dependency issue with eslint-plugin-import-x:

2024-07-08_16-44-21

gt-packages avatar Jul 08 '24 14:07 gt-packages

After updating to 2.22.0, I got the similar issue: image

michael-hillmann avatar Jul 11 '24 10:07 michael-hillmann

same issue with eslint 9

GaborTorma avatar Jul 11 '24 10:07 GaborTorma

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.

antfu avatar Jul 11 '24 16:07 antfu

eslint-plugin-import-x has new version with eslint 9 support.

GaborTorma avatar Jul 13 '24 08:07 GaborTorma

Was this resolved in https://github.com/antfu/eslint-config/commit/794424466eb10d88de1e060bad23f6416703e943 ? If not, what does remain?

Dimava avatar Jul 18 '24 07:07 Dimava

in my case, it's working 👍

michael-hillmann avatar Jul 19 '24 07:07 michael-hillmann

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.

paker777 avatar Jul 19 '24 09:07 paker777

eslint-plugin-import-x still use typescript-eslint/utils 7.16.1 2024-07-19_14-59-28

CCProHu avatar Jul 19 '24 13:07 CCProHu

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?

GaborTorma avatar Aug 05 '24 11:08 GaborTorma