Skip to content

Husky Pre-push & Commitlint

Husky hooks ensure code quality and commit message formatting locally.

  • commit-msg: npx --no -- commitlint --edit $1
  • pre-push: runs npm run pre-push, which invokes the pre-push validation script from @repo/scripts package
  • Change detection for workspaces based on recent diffs
  • Runs: turbo run typecheck|lint|build filtered to changed workspaces
  • Runs Prettier check across the repo
  • Blocks the push on failures, prints actionable output
  • Enforces Conventional Commits; supports scopes for apps/packages and multi-line messages
  • Examples:
    • feat(server): add rate limiter
    • fix(ui): correct button focus state
    • chore: update dependencies