commitlint
commitlint copied to clipboard
chinese in type-enums
Expected Behavior
{
extends: ['@commitlint/config-conventional'],
rules: {
'type-case': [0, 'never'],
'subject-case': [0, 'never'],
'type-enum': [
2,
'always',
[
'build', // 构建
'ci', // ci
'chore', // 改变构建流程、或者增加依赖库、工具等
'docs', // 仅仅修改了文档,比如README, CHANGELOG, CONTRIBUTE等等
'feat', // 新增feature
'fix', // 修复bug
'perf', // 优化相关,比如提升性能、体验
'refactor', // 代码重构,没有加新功能或者修复bug
'revert', // 回滚到上一个版本
'style', // 仅仅修改了空格、格式缩进、逗号等等,不改变代码逻辑
'test', // 测试用例,包括单元测试、集成测试等
'构建', // 构建
'集成', // ci
'架构', // 改变构建流程、或者增加依赖库、工具等
'文档', // 仅仅修改了文档,比如README, CHANGELOG, CONTRIBUTE等等
'功能', // 新增feature
'修复', // 修复bug
'优化', // 优化相关,比如提升性能、体验
'重构', // 代码重构,没有加新功能或者修复bug
'回滚', // 回滚到上一个版本
'美化', // 仅仅修改了空格、格式缩进、逗号等等,不改变代码逻辑
'测试' // 测试用例,包括单元测试、集成测试等
]
]
}
}
echo "功能: new feature" | commitlint output: success
Current Behavior
⧗ input: 功能: new feature ✖ subject may not be empty [subject-empty] ✖ type may not be empty [type-empty]
Sorry for the delay on this one. For an update, I have been waiting back from and upstream issue. If there are no comments on that one, soon we will override the header patterns in his package so we can fix this issues and many more like it.
I believe that to many people it is hurting that the type of confirmation message cannot contain "strange characters". In my case, I would love to be able to use the emojiAlign: 'left'
option, without having to disable the rule 'type-empty': [2, 'never']
.