chore(ui): add commit lint

This commit is contained in:
robin 2022-11-21 18:21:00 +08:00
parent 35834dfcb2
commit ae6598ac41
2 changed files with 5 additions and 1 deletions

4
.husky/commit-msg Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
cd ui && pnpm commitlint --edit $1 --config commitlint.config.js

View File

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