Repository navigation
Move the frontend to ESLint 10 and Vitest 5 - #62
Open
thomasunise wants to merge 1 commit into
Open
thomasunise wants to merge 1 commit into
thomasunise wants to merge 1 commit into
Conversation
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.
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.
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.