Repository navigation
chore(deps)!: upgrade eslint to v10 - #113
Merged
Merged
Conversation
Move the lint and format tooling to its next majors: - eslint 9.39 -> 10.13 - eslint-plugin-astro 1.7 -> 3.2.1 (peers eslint >=10) - prettier-plugin-tailwindcss 0.7 -> 0.8.1 - eslint-plugin-jsx-a11y 6.10.2 -> eslint-plugin-jsx-a11y-x 0.2.0 eslint-plugin-jsx-a11y peers eslint <=9 and has no ESLint 10 release. eslint-plugin-astro 3.2 supports its maintained fork, jsx-a11y-x, as a drop-in for the flat/jsx-a11y-recommended config, which is unchanged. Planted TypeScript, Astro, Storybook and a11y violations are reported identically before and after. `npm run format` changes no files. BREAKING CHANGE: ESLint 10 requires Node >=20.19; eslint-plugin-astro 3 requires Node ^22.22.3 || ^24.16.0 || >=26.3.0. Refs: #81 Refs: #90 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
✅ Deploy Preview for cscsdev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
Author
Review verdicts (correctness, tests, fit/supply chain)The supply chain is clean, and equal coverage on
|
Raise typescript-eslint, @typescript-eslint/eslint-plugin and @typescript-eslint/parser to ^8.61.0, the floor eslint-plugin-astro 3 declares for its optional peers. Resolved versions are unchanged. State in AGENTS.md that the a11y rules cover .astro files only. Refs: #81 Refs: #90 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 2, 2026
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.
Summary
eslint.config.jsis unchanged. Theflat/jsx-a11y-recommendedconfig is still used.AGENTS.mdnow describes the a11y plugin accurately.Why the a11y plugin is swapped.
eslint-plugin-jsx-a11y6.10.2 (latest, Oct 2024) peerseslint ^3 ... ^9and has no ESLint 10 release (jsx-eslint/eslint-plugin-jsx-a11y#1075, open). The lint config does use it, througheslint-plugin-astro'sflat/jsx-a11y-recommended.eslint-plugin-astro3.2 supports the community forkeslint-plugin-jsx-a11y-x(es-tooling, same rules, peerseslint ^9 || ^10, v0.2.0 from May 2026, repo active, about 417k weekly downloads) as a second optional peer and prefersjsx-a11yonly when it is installed.overrideswas rejected because it would hide an unsupported runtime.typescript-eslint8.72.0 andeslint-plugin-storybook10.6.3 already support ESLint 10; their resolved versions are unchanged, and thetypescript-eslintfamily's range floor is raised to^8.61.0to matcheslint-plugin-astro's optional peer. The a11y rules cover.astrofiles only (not.tsx); that gap predates this PR and is tracked in #114. Versions are the newest published before the 2026-10-26 cooldown cutoff.Migration checked. ESLint v10 migration guide: Node >=20.19,
eslint-envcomments, config lookup from file, JSX reference tracking, removed eslintrc. None needed a change.eslint-plugin-astro2.x and 3.x changelog: ESM only, andastro/no-prerender-export-outside-pageswas added torecommended.astro/valid-compileandastro/no-omitted-end-tagswere deprecated and dropped fromrecommended, sinceastro check(run in CI) covers them.Test plan
npm run lint,format:check,check(0 errors),test:run(80 passed),buildandbuild-storybookall pass.npm run formatonce with prettier-plugin-tailwindcss 0.8.1: 0 files changed, so there is no separate format commit.no-unused-vars,ban-ts-comment,no-var; Astrono-conflict-set-directives,no-unused-define-vars-in-style; Storybookdefault-exports; 11 a11y findings includingalt-text,anchor-is-validfor both a missing href andhref="#",click-events-have-key-events,media-has-caption). Main and the branch report the same 18 findings. A second a11y file (label-has-associated-control,mouse-events-have-key-events,no-distracting-elements,aria-role) is identical too. A bare<input>without a label is not flagged on either side, because it is not covered bylabel-has-associated-control.eslint --print-configon an.astrofile): all 34astro/jsx-a11y/*rules have the same names and severities on main and the branch, none added or dropped. The only difference is thatjsx-a11y-xwrites its default options into the resolved config. Non-a11y astro rules: droppedastro/valid-compile(deprecated upstream, covered byastro check), addedastro/no-exports-from-componentsandastro/no-prerender-export-outside-pages. Existing code passes the new rules.npm audit: 21 vulnerabilities before, 19 after (one low, 18 moderate).eslint-plugin-jsx-a11y,eslint-compat-utilsand@eslint/eslintrcare gone. The eslint / minimatch / typescript-eslint chain is not gone: advisory GHSA-g3hv-75wg-m249 needsminimatch >=11.0.1, which was only published 2026-10-27 (inside the 7-day cooldown), and eslint 10.13 still depends onminimatch ^10.Merge Danger
Door: two-way. Revert restores the previous lockfile.
Blast Radius: dev tooling and CI only.
This includes
prettier-plugin-tailwindcss0.8.1 from #97, which stays open for itspocketbasehalf (B3). Supersedes #105 (eslint-plugin-astro 3.2.1). That PR cannot pass on its own because it requires eslint 10 andjsx-a11ypins<=9. Not touched: #74 (optional Storybook ESLint plugin loading), #111 and #102 (vitest 5), #110 (prettier-plugin-astro).Refs: #81
Refs: #90
BREAKING CHANGE:
eslint-plugin-jsx-a11yis replaced byeslint-plugin-jsx-a11y-x, and ESLint 10 changes the config and CLI behaviour (flat config only, new config lookup,eslint-envcomments are errors).engines.nodeis unchanged (already>=22.23.4).🤖 Generated with Claude Code