Reference
Git Hooks
Install pre-push hooks. Enforce Biome linting + Vitest tests. Cross-platform Bun script.
TL;DR: bun scripts/install-hooks.ts. Blocks push if bun run check or bun run test fails. ✅ Enforced.
Table of Contents
Install
Run once:
From scripts/install-hooks.ts:
- Creates
.git/hooks/pre-push - Copies
.claude/hooks/pre-push.sh chmod +x
What It Runs
Pre-push hook executes:
From CLAUDE.md.
Bypass
Temporary: git push --no-verify
Quiz: Hook blocks if?
A: Tests fail ✅
Pro Tip ✅: Hooks ensure quality.
CTA: bun scripts/install-hooks.ts -> Push safely!
Next: DO Patterns ->