Git hooks
Hooks are Husky scripts that call lintlane hook <name>, which runs the real tool:
| Hook | Does |
|---|---|
pre-commit |
lint-staged runs biome check --write on staged files. Partially staged files keep their unstaged edits; nothing you didn’t stage is committed. A lint error blocks the commit and changes nothing. |
commit-msg |
commitlint validates the message. |
prepare-commit-msg |
A plain git commit opens the Commitizen prompt (skipped for -m, merges, amends, CI, no terminal, LINTLANE_NO_PROMPT=1). |
pre-push |
commitlint checks every commit being pushed, catching --no-verify and GUI clients. |
Customize staged-file processing in the lint-staged key of package.json (or
any lint-staged config file). Bypass once with git commit --no-verify.