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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: drop testing of ESLint 4 #165

Merged

Conversation

MikeMcC399
Copy link
Collaborator

@MikeMcC399 MikeMcC399 commented Apr 14, 2024

related to issues:

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"

This rules out the supported use of ESLint 4 for dev linting tests in the repository.

Change

Remove tests for ESLint 4.

The last release of ESLint 4.x was eslint@4.19.1 released on March 22, 2018, more than 6 years ago. The current release is eslint@9.0.0 released on Apr 5, 2024.

This change does not prevent eslint-plugin-cypress being installed and used with ESLint 4 therefore it is not a breaking change for end-users.

There is an outdated note in README > Rules referring to ESLint 4.x. The issue #14, being referred to, is however already resolved. This should be cleaned up in a later migration step as the repo is moved towards supporting ESLint 8.x correctly.

NOTE: These rules currently require eslint 5.0 or greater. If you would like support added for eslint 4.x, please 馃憤 this issue.

@cypress-app-bot
Copy link

@MikeMcC399
Copy link
Collaborator Author

MikeMcC399 commented Apr 14, 2024

image

This test needs to be removed as a "Required" test.

@MikeMcC399 MikeMcC399 marked this pull request as ready for review April 15, 2024 16:48
@MikeMcC399 MikeMcC399 marked this pull request as draft April 16, 2024 17:11
@jennifer-shehane
Copy link
Member

@MikeMcC399 I removed the v4 job as a required job for branch protections

@MikeMcC399
Copy link
Collaborator Author

@jennifer-shehane

I removed the v4 job as a required job for branch protections

Thank you very much!

@MikeMcC399 MikeMcC399 marked this pull request as ready for review April 17, 2024 06:11
@MikeMcC399 MikeMcC399 added the bug label Apr 17, 2024
Copy link
Member

@jennifer-shehane jennifer-shehane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MikeMcC399 Looks good. Thanks for the detailed write up

@jennifer-shehane jennifer-shehane merged commit 629f146 into cypress-io:master Apr 17, 2024
6 checks passed
@MikeMcC399 MikeMcC399 deleted the remove/eslint-4-tests branch April 17, 2024 13:04
@cypress-app-bot
Copy link

馃帀 This PR is included in version 3.0.0 馃帀

The release is available on:

Your semantic-release bot 馃摝馃殌

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

Successfully merging this pull request may close these issues.

Script tests for other ESLint versions give warnings or fail
3 participants