Repository navigation
Repair wp/5.1 branch Actions: Skip the ESLint rules the backported rich-text code breaks - #85671
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. 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. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
63fc101 to
c97016e
Compare
andrewserong
left a comment
There was a problem hiding this comment.
Switching off makes good sense, and these are just cosmetic rules. LGTM!
c97016e to
cd39cbe
Compare
cd39cbe to
b9b5a21
Compare
b9b5a21 to
efa575f
Compare
Part of #83422.
What?
Turns off, in
.eslintrc.js, the one ESLint rule that each of three@wordpress/rich-textfiles breaks, scoped to that file only:packages/rich-text/src/to-tree.jsno-mixed-spaces-and-tabspackages/rich-text/src/test/insert-line-separator.jsfunc-call-spacingpackages/rich-text/src/test/split.jsspace-in-parensWhy?
Static Analysis
Lint JavaScriptfails with:All of it is already on
wp/5.1: it came in with the 2021 backport of 1621f9c ("Keep track of replacements as a sparse array."), after this branch had stopped running CI.How?
Fixing the whitespace would change
@wordpress/rich-texton this branch with no functional reason. Overriding the rules in the root ESLint config instead leaves the package untouched. Every other rule still applies to these files, and these three rules still apply everywhere else.Testing Instructions
Checked with this branch's ESLint (
eslint@4.19.1,@wordpress/eslint-pluginfrompackages/eslint-plugin, and the plugin versions frompackage-lock.json): the base branch's config reports the 11 errors summarized above (9 into-tree.js, 1 in each test), this PR's config reports none, and--print-configshows each file with only its own rule turned off.In CI, Static Analysis passes at the top of the stack (#85677, run 40384935883).
Use of AI Tools
This PR was created by Claude Code under my supervision. All code should be treated as AI-produced and not yet reviewed by a human until this PR is marked Ready for Review.
🤖 Generated with Claude Code