chore: update @automattic/eslint-plugin-wpvip and migrate to ESLint 9
#2650
+3,806
−12,978
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Description
This pull request refactors the ESLint configuration to use the new flat config format, updates related dependencies, and cleans up various code and test files. The most significant changes include the migration from
.eslintrc.jstoeslint.config.js, updates to the ESLint plugin and Prettier dependencies, and removal of legacy ESLint ignore patterns. Additionally, minor code cleanups and improvements have been made throughout the codebase.ESLint configuration migration and dependency updates:
.eslintrc.jsto the new flat config format ineslint.config.js, updating how rules and ignores are set up for the project. ([1], [2])@automattic/eslint-plugin-wpvipto point to the latest GitHub version and upgradedprettierto version 3.x inpackage.json. ([1], [2]).eslintignorein favor of the new config format. (1)Code and test file improvements:
@typescript-eslint/no-var-requiresto@typescript-eslint/no-require-imports). ([1], [2])Minor code cleanups:
These changes modernize the project's linting setup, improve code quality, and lay the groundwork for easier future maintenance.
automattic/eslint-config-wpvip, updatepackage.jsonand set the correct version forautomattic/eslint-config-wpvip.Changelog Description
Changed
Pull request checklist
New release checklist
Steps to Test
There are no functional changes. CI must pass.