提交 bd146ec9 编写于 作者: M meteorlxy

build: refine commitlint config

上级 b182e7c9
......@@ -9,8 +9,12 @@ module.exports = {
],
rules: {
'scope-enum': [
'cli',
...VuepressPackages
].map(name => `$${name}`)
2,
'always',
[
'cli',
...VuepressPackages
].map(name => `$${name}`)
]
}
}
......@@ -30,7 +30,8 @@
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册