- Use Vite+ for the development toolchain and managed Node/Bun environments.
- Keep Bun as the runtime, test runner, and native CLI builder.
- Prefer functional patterns, typed errors as values, and inferred TypeScript types. Avoid
as any. - Keep changes focused and preserve the existing UI conventions.
After making changes, run all of these commands before committing or reporting the work complete:
bun run format
bun run lint
bun run format:check
bun run check
bun run test
bun run build
bun run build:cli
git diff --check- Fix failures and rerun the affected checks. If formatting changes files, verify the final formatted source.
- Use
bun run checkfor the complete check: it synchronizes SvelteKit, runs Vite+ format/lint/type checks, and runssvelte-check --tsgofor Svelte component types and diagnostics. Barevp checkdoes not replace it. - Preserve the native TypeScript compiler alias and
--tsgoflag. TypeScript 6 remains necessary for the JavaScript tooling APIs. - Generated builds, native binaries, dependencies, and local databases must remain ignored by Git.