Skip to content

release/git-hooks

Installs husky and wires four Git hooks.

Hook Action
commit-msg Run commitlint --edit on the commit message
prepare-commit-msg Run cz --hook when czg or commitizen is installed; otherwise a no-op
pre-commit Run lint-staged, or biome check --write when lint-staged is not installed
pre-push Run typecheck and test, or check:turbo in Turborepo projects

Hooks are written to .husky/. In Vite+ projects they go to .vite-hooks/ instead, and vp staged replaces the pre-commit hook without installing husky.