feat: 强制提交信息符合husky
This commit is contained in:
parent
886ecb6c2e
commit
6b0391bf2e
4
.husky/commit-msg
Executable file
4
.husky/commit-msg
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
. "$(dirname -- "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
npx --no -- commitlint --edit "$1"
|
||||||
1
commitlint.config.cjs
Normal file
1
commitlint.config.cjs
Normal file
@ -0,0 +1 @@
|
|||||||
|
module.exports = { extends: ['@commitlint/config-conventional'] };
|
||||||
@ -27,6 +27,8 @@
|
|||||||
"vue-router": "^4.5.1"
|
"vue-router": "^4.5.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@commitlint/cli": "^19.8.1",
|
||||||
|
"@commitlint/config-conventional": "^19.8.1",
|
||||||
"@types/node": "^20.19.0",
|
"@types/node": "^20.19.0",
|
||||||
"@typescript-eslint/eslint-plugin": "6.13.2",
|
"@typescript-eslint/eslint-plugin": "6.13.2",
|
||||||
"@typescript-eslint/parser": "6.13.2",
|
"@typescript-eslint/parser": "6.13.2",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user