chore: 增加 git commit 校验
Showing
commitlint.config.js
0 → 100644
... | ... | @@ -23,6 +23,8 @@ |
"vuex": "^3.0.1" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^9.1.1", | ||
"@commitlint/config-conventional": "^9.1.1", | ||
"@vue/cli-plugin-babel": "^3.8.0", | ||
"@vue/cli-plugin-eslint": "^3.8.0", | ||
"@vue/cli-service": "^3.8.0", | ||
... | ... | @@ -43,7 +45,8 @@ |
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
"pre-commit": "lint-staged", | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS" | ||
} | ||
}, | ||
"lint-staged": { | ||
... | ... |
Please
register
or
sign in
to comment