chore: migrate to ESLint extends config structure #1545
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.
Supersedes related Renovate PRs:
Situation
The ESLint 9.22.0 release provided a new config feature described in the blog article Evolving flat config with extends and which is now the documented way to construct ESLint Configuration Files.
The ESLint configuration eslint.config.mjs does not yet use this feature. The new functionality would allow constructing this ESLint config in a simpler and more maintainable way.
Change
The ESLint configuration is simplified and updated, in detail as follows. Minor example source code linting fixes are carried out.
Update the ESLint configuration eslint.config.mjs to use the
defineConfig()
function, imported from theeslint/config
entrypoint according to the Configuration Files documentation.Align import naming for best agreement with ESLint and eslint-plugin-cypress documentation
Update to latest ESLint components
Fix recommended rule violations
Add rules and fix violations:
['error', 'always']
['error', 'always']
Note that only example sources are changed, so this PR does not cause any version update to the action itself.
Verification
Confirm no errors reported and no changes suggested.