Skip to content

Move the frontend to ESLint 10 and Vitest 5 - #62

Open
thomasunise wants to merge 1 commit into
mainfrom
deps/frontend-tooling-majors-2026-11
Open

thomasunise wants to merge 1 commit into
mainfrom
deps/frontend-tooling-majors-2026-11

Conversation

@thomasunise

Copy link
Copy Markdown
Owner

Two Dependabot majors, taken together because both change the lint and
test toolchain the same CI job runs.

ESLint 10 no longer ships @eslint/js as its own dependency, so the flat
config's import of it is now an explicit devDependency. Its recommended
set gained two rules that found real things: the request-timeout error
thrown in the API client now carries the fetch error as its cause
(preserve-caught-error; tsconfig's lib gains ES2022.Error for the
option), and a hue variable in the branding store no longer gets a
value every branch overwrote (no-useless-assignment).

Vitest 5 changed the shape of its Assertion type, so jest-dom's generic
augmentation no longer attached its matchers and 93 test files failed
to type-check; the test setup now imports @testing-library/jest-dom's
vitest entry, which augments vitest's own interface. All 736 unit tests
pass with and without coverage, tsc and ESLint are clean, and the
production build is unchanged.

Supersedes #54 and #52.

Two Dependabot majors, taken together because both change the lint and
test toolchain the same CI job runs.

ESLint 10 no longer ships @eslint/js as its own dependency, so the flat
config's import of it is now an explicit devDependency. Its recommended
set gained two rules that found real things: the request-timeout error
thrown in the API client now carries the fetch error as its cause
(preserve-caught-error; tsconfig's lib gains ES2022.Error for the
option), and a hue variable in the branding store no longer gets a
value every branch overwrote (no-useless-assignment).

Vitest 5 changed the shape of its Assertion type, so jest-dom's generic
augmentation no longer attached its matchers and 93 test files failed
to type-check; the test setup now imports @testing-library/jest-dom's
vitest entry, which augments vitest's own interface. All 736 unit tests
pass with and without coverage, tsc and ESLint are clean, and the
production build is unchanged.
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