Skip to content

chore(deps)!: upgrade eslint to v10 - #113

Merged
jvcorredor merged 2 commits into
mainfrom
cscs.dev-81-eslint10
Nov 2, 2026
Merged

jvcorredor merged 2 commits into
mainfrom
cscs.dev-81-eslint10

Conversation

@jvcorredor

@jvcorredor jvcorredor commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

 eslint                        9.39.5 -> 10.13.0
 eslint-plugin-astro           1.7.0  -> 3.2.1     (peers eslint >=10)
 prettier-plugin-tailwindcss   0.7.4  -> 0.8.1
-eslint-plugin-jsx-a11y        6.10.2
+eslint-plugin-jsx-a11y-x      0.2.0

eslint.config.js is unchanged. The flat/jsx-a11y-recommended config is still used. AGENTS.md now describes the a11y plugin accurately.

Why the a11y plugin is swapped. eslint-plugin-jsx-a11y 6.10.2 (latest, Oct 2024) peers eslint ^3 ... ^9 and has no ESLint 10 release (jsx-eslint/eslint-plugin-jsx-a11y#1075, open). The lint config does use it, through eslint-plugin-astro's flat/jsx-a11y-recommended. eslint-plugin-astro 3.2 supports the community fork eslint-plugin-jsx-a11y-x (es-tooling, same rules, peers eslint ^9 || ^10, v0.2.0 from May 2026, repo active, about 417k weekly downloads) as a second optional peer and prefers jsx-a11y only when it is installed. overrides was rejected because it would hide an unsupported runtime.

typescript-eslint 8.72.0 and eslint-plugin-storybook 10.6.3 already support ESLint 10; their resolved versions are unchanged, and the typescript-eslint family's range floor is raised to ^8.61.0 to match eslint-plugin-astro's optional peer. The a11y rules cover .astro files 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-env comments, config lookup from file, JSX reference tracking, removed eslintrc. None needed a change. eslint-plugin-astro 2.x and 3.x changelog: ESM only, and astro/no-prerender-export-outside-pages was added to recommended. astro/valid-compile and astro/no-omitted-end-tags were deprecated and dropped from recommended, since astro check (run in CI) covers them.

Test plan

  • npm run lint, format:check, check (0 errors), test:run (80 passed), build and build-storybook all pass.
  • npm run format once with prettier-plugin-tailwindcss 0.8.1: 0 files changed, so there is no separate format commit.
  • Planted violations in a scratch copy (TypeScript no-unused-vars, ban-ts-comment, no-var; Astro no-conflict-set-directives, no-unused-define-vars-in-style; Storybook default-exports; 11 a11y findings including alt-text, anchor-is-valid for both a missing href and href="#", 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 by label-has-associated-control.
  • Rule sets (eslint --print-config on an .astro file): all 34 astro/jsx-a11y/* rules have the same names and severities on main and the branch, none added or dropped. The only difference is that jsx-a11y-x writes its default options into the resolved config. Non-a11y astro rules: dropped astro/valid-compile (deprecated upstream, covered by astro check), added astro/no-exports-from-components and astro/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-utils and @eslint/eslintrc are gone. The eslint / minimatch / typescript-eslint chain is not gone: advisory GHSA-g3hv-75wg-m249 needs minimatch >=11.0.1, which was only published 2026-10-27 (inside the 7-day cooldown), and eslint 10.13 still depends on minimatch ^10.

Merge Danger

Door: two-way. Revert restores the previous lockfile.

Blast Radius: dev tooling and CI only.

This includes prettier-plugin-tailwindcss 0.8.1 from #97, which stays open for its pocketbase half (B3). Supersedes #105 (eslint-plugin-astro 3.2.1). That PR cannot pass on its own because it requires eslint 10 and jsx-a11y pins <=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-a11y is replaced by eslint-plugin-jsx-a11y-x, and ESLint 10 changes the config and CLI behaviour (flat config only, new config lookup, eslint-env comments are errors). engines.node is unchanged (already >=22.23.4).

🤖 Generated with Claude Code

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>
@netlify

netlify Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cscsdev ready!

Name Link
🔨 Latest commit a116ac3
🔍 Latest deploy log https://app.netlify.com/projects/cscsdev/deploys/6ae7e69c3138742f5a02469c
😎 Deploy Preview https://deploy-preview-113--cscsdev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@jvcorredor

Copy link
Copy Markdown
Contributor Author

Review verdicts (correctness, tests, fit/supply chain)

The supply chain is clean, and equal coverage on .astro files is independently confirmed: 13 extra planted rules fire identically. There are no medium or high findings.

# Finding Verdict Note
Corr-1 (part) AGENTS.md reads as if .tsx components are a11y-linted. fix Reword the AGENTS.md lint line to say a11y rules cover .astro files only (see #114).
Fit-F1 Overlap with Dependabot #97 isn't mentioned. fix In the PR body, say this includes prettier-plugin-tailwindcss 0.8.1 from #97 and that #97 stays open for its pocketbase half (B3).
Fit-F2 The BREAKING CHANGE: footer overstates the Node change. fix Trim it to the a11y plugin swap and the eslint 10 config/CLI changes, and say engines.node is unchanged (already >=22.23.4).
Fit-F3 "latest, Jan 2025" is wrong. fix Change it to "Oct 2024".
Fit-F5 The typescript-eslint floor is below eslint-plugin-astro's optional peer. fix Raise typescript-eslint (and any @typescript-eslint/* listed) to ^8.61.0. The resolved lockfile versions shouldn't change; confirm that.
Corr-1 (rest), Tests-F1/F2 .tsx has no a11y linting; there's no canary for a11y rules disappearing; the coverage evidence isn't committed. follow-up #114. These all predate this PR.
Corr-2, Fit-F6 Stale eslint-plugin-jsx-a11y mentions. reject Only in dated snapshots (doc/audit.md, doc/improvements.md, the one-shot audit script). No live guidance is wrong.
Corr-3/4, Tests-F3–F5, Fit-F4 Node 24.15 EBADENGINE warning, cosmetic docs URL or option echo, rule-count wording, minimatch note, cooldown date wording. reject Informational, with no impact.

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>
@jvcorredor
jvcorredor merged commit 96b2e6a into main Nov 2, 2026
5 checks passed
@jvcorredor
jvcorredor deleted the cscs.dev-81-eslint10 branch November 2, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant