Commit 1384dbf
committed
chore: quality-tightening (yarn 1 -> 4, oxfmt + oxlint + tsc + vitest + husky)
Yarn 1 -> 4 migration plus the standard quality-tightening rollout.
- Drops yarn 1 lockfile + .yarnrc; adds .yarnrc.yml + mise.toml
(node 20.18.0, yarn 4.14.1, actionlint, shellcheck, gitleaks).
- prettier -> oxfmt
- eslint (with @typescript-eslint, github, jest, prettier, unicorn)
-> oxlint with eslint-plugin-unicorn
- jest 26 + jest-circus + jest-fail-on-console + ts-jest +
@types/jest -> vitest 4 + vite 7 + @vitest/coverage-istanbul.
jest.config.js + jest.setup.ts removed; replaced with
vitest.config.mts + src/test/setup.ts.
- new: tsgo --noEmit (alongside tsc fallback)
- husky 7 -> husky 9 with scripts/ensure-husky.mjs self-heal +
lint-staged
- yarn-audit-fix dropped (yarn 4 has its own audit; the fixer was
yarn 1 specific)
- ts-node dropped (not used by build/test/lint)
- TypeScript bumped 4.x -> 5; tsconfig target ES6 -> ES2022 + lib
ES2022 + DOM, skipLibCheck on, types: [node].
- Added standard yarn 4 .gitignore entries (.yarn/cache et al.)
Test migration (10 files):
- Bulk-converted jest.* -> vi.* and added vitest imports.
- 2 tests asserted nothing: 'expect(() => fn()).rejects;' (no
matcher chained). Replaced with proper
'await expect(fn()).rejects.toThrow(...)' assertions, per the
global rule 'Never weaken a test to make it pass'.
- jest.setup.ts (jest-fail-on-console) replaced with
src/test/setup.ts that installs equivalent console-fail spies in
beforeEach + restores in afterEach. Same 'console output =
failed test' behaviour.
Verified locally: lint 0/6, format clean, typecheck clean,
test 77/78 (1 pre-existing skipped), build succeeds (ncc bundle
2282kB), actionlint clean across all workflows.1 parent 9e9fb99 commit 1384dbf
39 files changed
Lines changed: 35528 additions & 13655 deletions
File tree
- .husky
- dist
- scripts
- src
- model
- test
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 1 | + | |
8 | 2 | | |
9 | | - | |
10 | | - | |
| 3 | + | |
11 | 4 | | |
12 | | - | |
13 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments