Husky-managed hooks for this repository: pre-commit, commit-msg.
Setup (once per clone):
npm installThe prepare script runs automatically and wires Git to .husky/.
No-op placeholder. Git always runs pre-commit before commit-msg; the real checks are in commit-msg so the commit subject is validated first.
All checks run in this hook, in fail-fast order:
- Commit message — subject line from the message file Git passes to this hook
- Frontend lint —
npm run lint(Prettier, ESLint,vue-tsc) whensrc/,tests/, or relevant config files are staged - Unit tests —
npm test(Vitest) under the same conditions
Commit message format (step 1):
type(PROJECT-123): commit message
type(PROJECT): commit messageValid types: feat, fix, clean, chore, docs
Valid projects: KIWI, GH
Merge commits
Git’s default merge subjects (for example Merge branch 'main' into feature-branch) are allowed automatically.
npm run fixnpm testgit commit --no-verify -m "chore(KIWI): emergency hotfix"Use sparingly — CI still enforces the same checks.