Skip to content

Conversation

@GaryJones
Copy link
Contributor

Summary

Test plan

  • Verify npm run lint-js runs without configuration errors

🤖 Generated with Claude Code

Remove the manual React plugin workaround that was needed due to a
react-hooks flat config bug in @automattic/eslint-plugin-wpvip@1.0.0.
The bug (Automattic/eslint-config-wpvip#228) caused ESLint 9 to fail
because react-hooks used the legacy plugins array format.

Now that v1.1.1 includes the fix, we can use the recommended config
directly instead of manually importing React plugins.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@GaryJones GaryJones requested a review from a team as a code owner December 17, 2025 01:16
@GaryJones GaryJones added the type: maintenance Routine maintenance and code quality improvements label Dec 17, 2025
@GaryJones GaryJones self-assigned this Dec 17, 2025
@GaryJones
Copy link
Contributor Author

Waiting on Automattic/eslint-config-wpvip#235 to be fixed so that the right formatting fixes can be applied, to pass the CI here.

…ting

The eslint-plugin-wpvip package incorrectly declares wp-prettier as a
devDependency instead of a dependency. This causes eslint-plugin-prettier
to resolve to regular prettier, which ignores the parenSpacing option
needed for WordPress coding standards.

This override forces the correct prettier version, fixing CI failures
where spaces inside parentheses were being incorrectly flagged.

Also fixes indentation issues now properly detected with wp-prettier.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@GaryJones GaryJones merged commit dea36b5 into develop Dec 18, 2025
14 of 18 checks passed
@GaryJones GaryJones deleted the chore/eslint-plugin-wpvip-1.1.1 branch December 18, 2025 14:10
Comment on lines +9 to +15
"overrides": {
"@automattic/eslint-plugin-wpvip": {
"eslint-plugin-prettier": {
"prettier": "npm:wp-prettier@3.0.3"
}
}
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

While there were a few linting items to fix, this override avoids waiting for the upstream dependency to be updated.

@GaryJones GaryJones mentioned this pull request Jan 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: maintenance Routine maintenance and code quality improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants