build: refine commitlint config

This commit is contained in:
meteorlxy
2019-11-28 17:19:50 +08:00
parent b182e7c931
commit bd146ec930
2 changed files with 9 additions and 4 deletions
+7 -3
View File
@@ -9,8 +9,12 @@ module.exports = {
],
rules: {
'scope-enum': [
'cli',
...VuepressPackages
].map(name => `$${name}`)
2,
'always',
[
'cli',
...VuepressPackages
].map(name => `$${name}`)
]
}
}
+2 -1
View File
@@ -30,7 +30,8 @@
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {