-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: commitlint change to use @yuntijs/lint
- Loading branch information
Showing
1 changed file
with
1 addition
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1 @@ | ||
module.exports = { | ||
// 继承的规则 | ||
extends: ['@commitlint/config-conventional'], | ||
// 定义规则类型 | ||
rules: { | ||
// type 类型定义,表示 git 提交的 type 必须在以下类型范围内 | ||
'type-enum': [ | ||
2, | ||
'always', | ||
[ | ||
'feat', // 新功能 feature | ||
'fix', // 修复 bug | ||
'docs', // 文档注释 | ||
'style', // 代码格式(不影响代码运行的变动) | ||
'refactor', // 重构(既不增加新功能,也不是修复bug) | ||
'perf', // 性能优化 | ||
'test', // 增加测试 | ||
'chore', // 构建过程或辅助工具的变动 | ||
'revert', // 回退 | ||
'build', // 打包 | ||
], | ||
], | ||
// subject 大小写不做校验 | ||
'subject-case': [0], | ||
}, | ||
}; | ||
module.exports = require('@yuntijs/lint').commitlint; |