Skip to content

feat: complete ESLint v10 migration#298

Merged
jennifer-shehane merged 1 commit intocypress-io:masterfrom
MikeMcC399:eslint-10-completion
Feb 17, 2026
Merged

feat: complete ESLint v10 migration#298
jennifer-shehane merged 1 commit intocypress-io:masterfrom
MikeMcC399:eslint-10-completion

Conversation

@MikeMcC399
Copy link
Collaborator

Situation

  • The explicit flat configuration option was replaced in eslint-plugin-cypress@5.0.0, in May 2025, by changing the default configuration eslint-plugin-cypress to be equivalent to eslint-plugin-cypress/flat, and at the same time eslint-plugin-cypress/flat was declared deprecated with a notice for planned removal in a future major version.
  • "globals": "^16.5.0" is configured in dependencies. The latest version is globals@17.3.0
  • package.json currently contains no package type field, although Node.js now recommends in Determining module system that "package authors should always include the "type" field in their package.json files".

Change

  • remove deprecated eslint-plugin-cypress/flat configuration and change entry point to neutrally named /lib/index.js
  • remove tests associated with eslint-plugin-cypress/flat
  • tie links to ESLint documentation for legacy configurations to ESLint v9 docs
  • update globals to 17.3.0
  • add "type": "commonjs" to package.json
  • update Node.js usage to 24.13.1 Active LTS
  • replace some internal absolute links in documentation with relative links

BREAKING:

Remove deprecated eslint-plugin-cypress/flat configuration
Use eslint-plugin-cypress instead
Update globals to 17.3.0

Other changes:
Add package type commonjs
Documentation updates related to flat configuration
Update Node.js to 24.13.1
@cypress-app-bot
Copy link

@MikeMcC399 MikeMcC399 marked this pull request as ready for review February 17, 2026 08:51
@MikeMcC399
Copy link
Collaborator Author

Branch protection rules may now be changed to include ci/circleci: test-v10

@jennifer-shehane jennifer-shehane merged commit 1f1d286 into cypress-io:master Feb 17, 2026
15 checks passed
@cypress-app-bot
Copy link

🎉 This PR is included in version 5.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@MikeMcC399
Copy link
Collaborator Author

@jennifer-shehane

I made a mistake in the commit body and wrote only BREAKING: instead of BREAKING CHANGE: so now there has been a version 5.4.0 published instead of 6.0.0. Sorry about that!

I guess the best solution would be to republish with BREAKING CHANGE: and to deprecate the 5.4.0 version.

@MikeMcC399
Copy link
Collaborator Author

The breaking changes are thankfully not too severe.

If a system were to automatically upgrade to 5.4.0 and they were still using eslint-plugin-cypress/flat, they would need to remove the /flat suffix.

The update from globals@16 to globals@17 probably will cause no issue.

@MikeMcC399 MikeMcC399 deleted the eslint-10-completion branch February 17, 2026 15:04
@MikeMcC399
Copy link
Collaborator Author

Fixed in #299

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.

3 participants

Comments