chore: fix Ultracite and TypeScript diagnostics

MY
5d ago
+1267-717

What changed

  • Update lint and test tooling dependencies, and run the suite with Vitest.
  • Fix the reported Ultracite and TypeScript issues across source, scripts, and tests.
  • Add a patch changeset covering the tooling updates and fixes.
  • Include the editor and hook configuration changes already present in the local worktree.

Verification

  • bun run check
  • bun run typecheck
  • bun run test (51 tests passed)

Summary by cubic

Migrates the test suite from bun:test to Vitest and fixes the reported Ultracite and TypeScript diagnostics across source, scripts, and tests.

  • The test script now builds the package before running Vitest, which resolves the @ alias through vitest.config.ts.
  • Updates lint and tooling dependencies (ultracite, oxlint, lefthook, effect, @types/bun) and extends oxlint with Vitest, jsdoc, and tsdoc plugins.
  • Adds a regression test for consumeResetCredit rejecting positional string arguments.
  • Configures editor TypeScript paths and formatter defaults in .vscode and .zed.