Commit 5f97943d by 无尘

chore: 增加 git commit 校验

parent 9cdb58cc
...@@ -4,12 +4,16 @@ ...@@ -4,12 +4,16 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-08-14 10:52:37 * @Date: 2020-08-14 10:52:37
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-08-14 11:00:35 * @LastEditTime: 2020-08-14 11:22:03
*/ */
module.exports = { module.exports = {
extends: ['@commitlint/config-conventional'], extends: ['@commitlint/config-conventional'],
rules: { rules: {
'type-enum': [ 'scope-empty': [0],
'scope-case': [0],
'subject-full-stop': [0, 'never'],
'subject-case': [0, 'never'],
'type-enum': [ // commit type 类型
2, 2,
'always', 'always',
[ [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment