Files
ccs/.husky/pre-commit
T

10 lines
398 B
Plaintext

# Run quick checks before commit (typecheck + lint + format only).
# Full CI parity is enforced by .husky/pre-push via validate:ci-parity.
bun run typecheck && bun run lint:fix && bun run format:check
# Validate UI if changes detected (typecheck + lint only)
if git diff --cached --name-only | grep -q "^ui/"; then
echo "[i] UI changes detected, running ui:validate..."
bun run ui:validate
fi