Docs: Add ESLint v10 migration guide and polish docs#77217
Conversation
Add a comprehensive consumer migration guide at docs/how-to-guides/eslint-v10-migration.md covering flat config migration, rule prefix changes, wp-scripts updates, and the temporary eslintrc compatibility wrapper. Polish eslint-plugin and scripts READMEs with minimum version requirements, expanded compat wrapper docs, and breaking change notes. Add PR links to all unreleased changelog entries.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
|
Here are the drafts I am planning to share once this and #77215 land Slack (#core-js)📢 ESLint v10 Upgrade Landing in Gutenberg We've upgraded What changed:
For consumers extending // OLD (.eslintrc.js)
module.exports = {
extends: [ 'plugin:@wordpress/eslint-plugin/recommended' ],
};
// NEW (eslint.config.mjs)
import wordpress from '@wordpress/eslint-plugin';
export default [ ...wordpress.configs.recommended ];Not ready to migrate? A temporary eslintrc compatibility wrapper is available for ESLint v9: const wordpress = require( '@wordpress/eslint-plugin/eslintrc' );
module.exports = wordpress.configs.recommended;This wrapper is deprecated and will be removed in a future major version. Migration guide: Migration guide Questions? Drop them in this thread. Make CoreMigrating to ESLint v10 with
|
342a8a3 to
803e60e
Compare
- Link to the new migration guide from eslint-plugin README - Add upstream ESLint v9 and v10 migration guide links - Add a TL;DR of breaking changes by ESLint version (v8→v9, v9→v10)
|
Flaky tests detected in 4c15343. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/24509800151
|
|
The package is out but the docs are not. I think we need to wrap this up ASAP. |
aduth
left a comment
There was a problem hiding this comment.
This will be a very useful resource for folks looking to upgrade 👍
|
@aduth Thank you for the review. What do you think about the announcement posts as mention in #77217 (comment) above? |
* Docs: Add ESLint v10 migration guide, polish READMEs and changelogs Add a comprehensive consumer migration guide at docs/how-to-guides/eslint-v10-migration.md covering flat config migration, rule prefix changes, wp-scripts updates, and the temporary eslintrc compatibility wrapper. Polish eslint-plugin and scripts READMEs with minimum version requirements, expanded compat wrapper docs, and breaking change notes. Add PR links to all unreleased changelog entries. * Docs: Address PR review feedback - Link to the new migration guide from eslint-plugin README - Add upstream ESLint v9 and v10 migration guide links - Add a TL;DR of breaking changes by ESLint version (v8→v9, v9→v10) Co-authored-by: manzoorwanijk <[email protected]> Co-authored-by: tyxla <[email protected]> Co-authored-by: aduth <[email protected]>
Summary
Part of #76506 (Phase 7 — Documentation, migration guide, changelog, announcements).
A follow up to #76654 and #77215
docs/how-to-guides/eslint-v10-migration.mdcovering flat config migration steps, rule prefix changes,wp-scriptsupdates, eslintrc compatibility wrapper usage, and troubleshootingpackages/eslint-plugin/README.md: add minimum ESLint version note, expand eslintrc compat wrapper section, add rule prefix change andeslint-envremoval to migration stepspackages/scripts/README.mdlint-js section with breaking change notes for ESLint v10eslint-pluginandscriptsCorresponding announcements (
#core-jsSlack, Make/Core blog post) will follow once this lands.Test plan