AutoCommit/commitlint.config.js
2020-12-25 14:45:44 +08:00

25 lines
866 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'subject-case': [0],
'scope-case': [0],
'type-enum': [
2,
'always',
[
'feat', // 增加新功能
'fix', // 修复bug
'build', // 构造工具的或者外部依赖的改动例如webpacknpm
'chore', // 不修改src或者test的其余修改例如构建过程或辅助工具的变动
'ci', // 与CI持续集成服务有关的改动
'docs', // 只改动了文档相关的内容
'style', // 不影响代码含义的改动,例如去掉空格、改变缩进、增删分号
'perf', // 提高性能的改动
'refactor', // 代码重构时使用
'revert', // 执行git revert打印的message
'test', // 添加测试或者修改现有测试
],
],
},
};