module.exports = { extends: ['@commitlint/config-conventional'], rules: { 'type-enum': [ 2, 'always', // 新增、修复、文档、不影响逻辑的代码格式、重构、测试、回滚、编译、合并、优化、配置、其他 ['feat', 'fix', 'doc', 'style', 'refactor', 'test', 'revert', 'build', 'merge', 'perf', 'conf', 'chore'], ], }, };