Run the quality gate
Run this before considering work done, and before any commit/push.
Steps
- Full gate:
sh
pnpm check # typecheck + lint + test pnpm build # also exercises the production bundle + route codegen - Read failures top-down: typecheck errors first, then lint, then test.
- Auto-fix formatting/lint where possible:
sh
pnpm lint:fix pnpm format - Common fixes:
tscerrors from a stale route tree → runpnpm generate:routes(orpnpm typecheck, which prefixes it).react-refresh/only-export-componentsoutsideroutes/orcomponents/ui/→ split non-component exports into another file.- Type-only import errors → use
import type { … }(the project enablesverbatimModuleSyntax).
- Do not stop at "mostly green" — the gate must pass fully before commit.
Notes
eslint .is type-aware; type errors can surface as lint errors too.routeTree.gen.tsis generated and excluded from lint/coverage — never edit it.


