ci: add commitlint and Husky for conventional commit validation (#2416)

- Add @commitlint/cli and @commitlint/config-conventional at repo root
- Configure commitlint with project-specific types (security, etc.)
- Set up Husky v9 with commit-msg hook running commitlint
- Add pre-commit hook running biome check on CLI source

Fixes #2406

Agent: code-health

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
A 2026-03-09 23:46:18 -07:00 committed by GitHub
parent d60d0626e9
commit b1afa4615f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 208 additions and 3 deletions

1
.husky/commit-msg Normal file
View file

@ -0,0 +1 @@
bunx --no -- commitlint --edit "$1"