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

feat: minimum version eslint v9 #234

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

MikeMcC399
Copy link
Collaborator

@MikeMcC399 MikeMcC399 commented Oct 11, 2024

Issue

ESLint versions < v9 are no longer supported (see https://eslint.org/version-support/). eslint-plugin-cypress cannot rely on unsupported ESLint versions.

Changes

Support for ESLint v7 and v8 is removed.

  • Update peerDependencies in package.json to
    "eslint": ">=9"

  • Delete test-v7 from circle.yml

  • Update globals to 15.11.0

  • Update eslint-plugin-n to 17.11.1

  • Remove languageOptions ecmaVersion: 2019 and sourceType: module from the eslint-plugin-cypress/flat config

  • Uninstall explicit @eslint/eslintrc and @eslint/js(installed automatically as dependency of eslint)

  • Update documentation

Notes

  • ci/circleci: test-v7 must be removed from branch protection rules. It is no longer used.

  • ci/circleci: test-v8 remains.

  • ESLint v8 is still used in circle.yml for the test:legacy script, since legacy configurations are still supported by ESLint v9.

  • The v8 RuleTester is however needed for legacy configurations as the v9 RuleTester only tests flat configurations. The blog post eslintrc removed in ESLint v10.0.0 announced plans to remove legacy configurations in ESLint v10 scheduled for end of 2024 or early 2025. At the latest, at this point, eslint-plugin-cypress should follow suit and remove support for legacy configurations.

BREAKING CHANGE: Support ESLint v9 and above only

Support for ESlint v7 & v8 is removed
languageOptions ecmaVersion: 2019 and sourceType: module are removed from eslint-plugin-cypress/flat config
globals is updated to 15.11.0
eslint-plugin-n is updated to 17.11.1
@cypress-app-bot
Copy link

@MikeMcC399

This comment was marked as outdated.

@MikeMcC399

This comment was marked as outdated.

@MikeMcC399
Copy link
Collaborator Author

ci/circleci: test-v7 is no longer used and should be removed from the branch protection rules before merging this PR

@MikeMcC399 MikeMcC399 marked this pull request as ready for review October 11, 2024 14:03
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.

I removed the v7 test requirement on the branch

@jennifer-shehane jennifer-shehane merged commit 47dc58f into cypress-io:master Oct 11, 2024
6 checks passed
@cypress-app-bot
Copy link

🎉 This PR is included in version 4.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@MikeMcC399
Copy link
Collaborator Author

@jennifer-shehane

I removed the v7 test requirement on the branch

Thank you very much!

@MikeMcC399 MikeMcC399 deleted the v9-only branch October 11, 2024 14:14
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.

Drop support for ESLint v7 and v8
3 participants