Skip to content

@nuxt/eslint@1.14.0 blocks upgrade to ESLint 10 due to peer dependency constraint #642

@dodanex

Description

@dodanex

Hi! After running npm-check-updates to update my project dependencies, I ran into a dependency resolution error related to @nuxt/eslint.

Reproduction

Steps to reproduce

  1. Install ESLint 10 in a Nuxt project using @nuxt/eslint
  2. Run npm install
  3. Observe the ERESOLVE error.

Describe the bug

It looks like @nuxt/eslint@1.14.0 declares a peer dependency of:

"eslint": "^9.0.0"

…but ESLint has now released version 10, and the peer range does not allow it. This prevents upgrading ESLint in Nuxt projects.

…assuming there are no breaking changes that affect the module.

Actual behavior
npm refuses to install because the peer dependency is too restrictive.

Environment

  • ESLint: 10.0.0
  • Node/npm: v25.1.0 / v11.7.0

Package

  • @nuxt/eslint: 1.14.0

Logs

When installing, npm fails with the following message:


npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! Found: eslint@10.0.0
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"^10.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^9.0.0" from @nuxt/eslint@1.14.0
npm ERR! node_modules/@nuxt/eslint
npm ERR!   dev @nuxt/eslint@"^1.14.0" from the root project

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions