Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@cypress/eslint-plugin-dev@3.2.0 lacks support for ESLint 4 #166

Closed
MikeMcC399 opened this issue Apr 14, 2024 · 2 comments
Closed

@cypress/eslint-plugin-dev@3.2.0 lacks support for ESLint 4 #166

MikeMcC399 opened this issue Apr 14, 2024 · 2 comments
Labels

Comments

@MikeMcC399
Copy link
Collaborator

Issue

@cypress/eslint-plugin-dev@3.2.0 configured in this repo's devDependencies contains peerDependencies:

    "@typescript-eslint/parser": ">= 1.11.0"
    "eslint": ">= 3.2.1 < 6"

however

@typescript-eslint/parser@1.11.0 is only compatible with ESLint 5:

  "eslint": "^5.0.0"

The error message from npm is

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
...
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^5.0.0" from @typescript-eslint/parser@1.11.0

This rules out the supported use of ESLint 4 for dev tests in the repository. It is also a handicap for moving to a supported version of Node.js 18.x and later.

Steps to reproduce

Ubuntu 22.04.4 LTS, Node.js 20.12.2

mkdir eslint-plugin-dev-test
cd eslint-plugin-dev-test
git init
npm init -y
npm install eslint@4 @cypress/eslint-plugin-dev@3.2.0 @typescript-eslint/parser@1.11.0

Logs

$ npm install eslint@4 @cypress/eslint-plugin-dev@3.2.0 @typescript-eslint/parser@1.11.0
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: eslint-plugin-dev-test@1.0.0
npm ERR! Found: eslint@4.19.1
npm ERR! node_modules/eslint
npm ERR!   eslint@"4" from the root project
npm ERR!   peer eslint@">= 3.2.1 < 6" from @cypress/eslint-plugin-dev@3.2.0
npm ERR!   node_modules/@cypress/eslint-plugin-dev
npm ERR!     @cypress/eslint-plugin-dev@"3.2.0" from the root project
npm ERR!   1 more (@cypress/eslint-plugin-json)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^5.0.0" from @typescript-eslint/parser@1.11.0
npm ERR! node_modules/@typescript-eslint/parser
npm ERR!   @typescript-eslint/parser@"1.11.0" from the root project
npm ERR!   peer @typescript-eslint/parser@">= 1.11.0" from @cypress/eslint-plugin-dev@3.2.0
npm ERR!   node_modules/@cypress/eslint-plugin-dev
npm ERR!     @cypress/eslint-plugin-dev@"3.2.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Suggestion

@MikeMcC399

This comment was marked as resolved.

@MikeMcC399 MikeMcC399 added the bug label Apr 17, 2024
@MikeMcC399
Copy link
Collaborator Author

This issue is now resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant