build(deps): upgrade ESLint to 9 + Next 16 lint stack#24
Merged
Conversation
Contributor
Author
LabelsThe following labels could not be found: Please fix the above issues or remove invalid values from |
2a1cf05 to
d55d96b
Compare
d55d96b to
be8f3a7
Compare
Dependabot proposed ESLint 10, but no eslint-plugin-react release supports it yet (latest 7.37.5 still peers eslint ^9.7, and eslint-config-next 16 bundles it), so ESLint 10 crashes on `context.getFilename()` removed in v10. Upgrade to the latest supported ESLint 9 instead; Dependabot can re-propose 10 once the ecosystem catches up. - eslint ^8.57.1 -> ^9.39.4 (off EOL 8) - eslint-config-next ^15.2.0 -> ^16.2.7 (match next 16; ships native flat config) - add eslint.config.mjs (flat config; `next lint` was removed in Next 16) - lint script: `next lint` -> `eslint .` `npm ci` resolves and `next build` typechecks clean. `npm run lint` now runs and surfaces 57 pre-existing findings (38 errors / 19 warnings) — tracked as follow-up, not addressed here.
be8f3a7 to
e0ace93
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 the plain Dependabot bump to ESLint 10. ESLint 10 is not yet supportable: no
eslint-plugin-reactrelease supports it (latest 7.37.5 peerseslint ^9.7, and eslint-config-next 16 bundles it), so v10 crashes on the removedcontext.getFilename(). Shipping ESLint 9 instead; Dependabot can re-propose 10 later.eslint.config.mjs(Next 16 removednext lint)next lint->eslint .npm ciresolves;next buildclean.npm run lintis now functional and surfaces 57 pre-existing findings (38 errors / 19 warnings) — follow-up cleanup, not in this PR.