chore(deps): migrate to ESLint extends config structure #1663
+127
−132
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.
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-plugin-cypress > README has also now been updated to describe using the
defineConfig()
helper function together with theextends
syntax.The ESLint configuration eslint.config.mjs uses
defineConfig
without usingextends
, so it does not yet take full advantage of this feature.Change
Update the ESLint configuration eslint.config.mjs:
Use the
extends
syntaxUse the globalIgnores helper function to ignore files in the temporary
build
directory created byvite build
Align import naming for best agreement with ESLint, typescript-eslint and eslint-plugin-cypress documentation
change
TO-DO
toTODO:
, following a convention to write it this way.Remove a currently unused
eslint-disable-next-line
directive in backend/types.ts.Update to latest ESLint components:
@eslint/[email protected]
(implicit)@typescript-eslint/parser@^8.35.1
(explicit)eslint@^9.30.1
eslint-plugin-cypress@^5.1.0
typescript-eslint@^8.35.1
Verification
Confirm no errors reported and no changes made.