仅需简单配置,无需单独的配置文件,即可使用vue风格的commit messages检测(类似于angular commitlint)
如果还需快速配置eslint代码风格检测风格,可参考eslint-plugin-all-in-one
pnpm install simple-git-hooks vue-commitlint -D
change your package.json
{
"scripts": {
"prepare": "simple-git-hooks"
},
// Recommend using simple-git-hooks
"simple-git-hooks": {
"commit-msg": "pnpm vue-commitlint"
}
}