build: set up commitlint

This commit is contained in:
Julien Le Coupanec 2022-04-15 22:01:00 +02:00
parent d85a74febf
commit 5b44f78be2
2 changed files with 5 additions and 0 deletions

4
.husky/commit-msg Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx --no -- commitlint --edit ""

1
commitlint.config.js Normal file
View File

@ -0,0 +1 @@
module.exports = {extends: ['@commitlint/config-conventional']}