Skip to content

Support eslint-plugin-n 17 #412

Open
@otto-liljalaakso-nt

Description

@otto-liljalaakso-nt

Here's what I did

I have a project that declares both eslint-config-standard and eslint-plugin-n as dev dependencies. Periodically, I upgrade all dependencies to latest versions I can. Today's attempt produced this:

"devDependencies": {
    "eslint-config-standard": "^17.1.0",
    "eslint-plugin-n": "^17.4.0",
}

What I expected to happen

npm install works and all the linting stuff still works.

What seems to have happened

eslint-config-standard does not support eslint-plugin-n version 17:

$  npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: eslint-config-standard@17.1.0
npm ERR! Found: eslint-plugin-n@17.4.0
npm ERR! node_modules/eslint-plugin-n
npm ERR!   dev eslint-plugin-n@"^17.4.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer eslint-plugin-n@"^15.0.0 || ^16.0.0 " from eslint-config-standard@17.1.0
npm ERR! node_modules/eslint-config-standard
npm ERR!   dev eslint-config-standard@"^17.1.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: eslint-plugin-n@16.6.2
npm ERR! node_modules/eslint-plugin-n
npm ERR!   peer eslint-plugin-n@"^15.0.0 || ^16.0.0 " from eslint-config-standard@17.1.0
npm ERR!   node_modules/eslint-config-standard
npm ERR!     dev eslint-config-standard@"^17.1.0" from the root project

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions