mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-08 21:06:42 +10:00
build: refine commitlint config
This commit is contained in:
+7
-3
@@ -9,8 +9,12 @@ module.exports = {
|
||||
],
|
||||
rules: {
|
||||
'scope-enum': [
|
||||
'cli',
|
||||
...VuepressPackages
|
||||
].map(name => `$${name}`)
|
||||
2,
|
||||
'always',
|
||||
[
|
||||
'cli',
|
||||
...VuepressPackages
|
||||
].map(name => `$${name}`)
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -30,7 +30,8 @@
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged"
|
||||
"pre-commit": "lint-staged",
|
||||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
|
||||
Reference in New Issue
Block a user