mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 08:17:11 +00:00
11 lines
458 B
Plaintext
11 lines
458 B
Plaintext
# Run quick checks before commit (typecheck + lint + format only).
|
|
# Protected branches still enforce full CI parity in .husky/pre-push.
|
|
# Feature branches use a faster pre-push gate plus GitHub CI.
|
|
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
|