nuxt/eslint

Dependency Conflicts with eslint@8 and eslint-config-flat-gitignore needing eslint@9

rmannjbs opened this issue · 2 comments

Environment


  • Operating System: Linux
  • Node Version: v22.8.0
  • Nuxt Version: 3.13.2
  • CLI Version: 3.14.0
  • Nitro Version: 2.9.7
  • Package Manager: npm@10.9.0
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Package

None

Reproduction

  • Install @nuxt/eslint@latest
  • Install eslint@8.57.0

Version conflicts ensue.

Describe the bug

@nuxt/eslint depends on a version of eslint-config-flat-gitignore that requires eslint@9, but @nuxt/eslint requires 8.57.0. Impossible to satisfy the dependencies without legacy peer deps, or forcing an override.

npm warn peer eslint@"^9.5.0" from eslint-config-flat-gitignore@0.3.0
npm warn node_modules/@nuxt/eslint/node_modules/@nuxt/eslint-config/node_modules/eslint-config-flat-gitignore
npm warn   eslint-config-flat-gitignore@"^0.3.0" from @nuxt/eslint-config@0.5.7
npm warn   node_modules/@nuxt/eslint/node_modules/@nuxt/eslint-config

Additional context

No response

Logs

npm warn ERESOLVE overriding peer dependency
npm warn While resolving: eslint-config-flat-gitignore@0.3.0
npm warn Found: eslint@8.57.1
npm warn node_modules/eslint
npm warn   dev eslint@"^8.57.0" from the root project
npm warn   36 more (@eslint-community/eslint-utils, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer eslint@"^9.5.0" from eslint-config-flat-gitignore@0.3.0
npm warn node_modules/@nuxt/eslint/node_modules/@nuxt/eslint-config/node_modules/eslint-config-flat-gitignore
npm warn   eslint-config-flat-gitignore@"^0.3.0" from @nuxt/eslint-config@0.5.7
npm warn   node_modules/@nuxt/eslint/node_modules/@nuxt/eslint-config
npm warn
npm warn Conflicting peer dependency: eslint@9.12.0
npm warn node_modules/eslint
npm warn   peer eslint@"^9.5.0" from eslint-config-flat-gitignore@0.3.0
npm warn   node_modules/@nuxt/eslint/node_modules/@nuxt/eslint-config/node_modules/eslint-config-flat-gitignore
npm warn     eslint-config-flat-gitignore@"^0.3.0" from @nuxt/eslint-config@0.5.7
npm warn     node_modules/@nuxt/eslint/node_modules/@nuxt/eslint-config
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @eslint/compat@1.2.0
npm warn Found: eslint@8.57.1
npm warn node_modules/eslint
npm warn   dev eslint@"^8.57.0" from the root project
npm warn   36 more (@eslint-community/eslint-utils, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peerOptional eslint@"^9.10.0" from @eslint/compat@1.2.0
npm warn node_modules/@nuxt/eslint/node_modules/@nuxt/eslint-config/node_modules/eslint-config-flat-gitignore/node_modules/@eslint/compat
npm warn   @eslint/compat@"^1.1.1" from eslint-config-flat-gitignore@0.3.0
npm warn   node_modules/@nuxt/eslint/node_modules/@nuxt/eslint-config/node_modules/eslint-config-flat-gitignore
npm warn
npm warn Conflicting peer dependency: eslint@9.12.0
npm warn node_modules/eslint
npm warn   peerOptional eslint@"^9.10.0" from @eslint/compat@1.2.0
npm warn   node_modules/@nuxt/eslint/node_modules/@nuxt/eslint-config/node_modules/eslint-config-flat-gitignore/node_modules/@eslint/compat
npm warn     @eslint/compat@"^1.1.1" from eslint-config-flat-gitignore@0.3.0
npm warn     node_modules/@nuxt/eslint/node_modules/@nuxt/eslint-config/node_modules/eslint-config-flat-gitignore

hey guys, any news on this? it looks like it's not possible to install 0.6 with strict deps :/

Is there any blocker you are still on ESLint v8? There is a small difference between v9.5.0+ and earlier, and it makes eslint-config-flat-gitignore not able to support both versions. An easier solution might be for @nuxt/eslint to drop support for ESLint v8 all - sooner or later, it will eventually happen - if you can share more context of why ESLint v8 is still a requirement for you, we might reconsider that, and decide our support timeline.