| 12345678910111213141516171819202122232425 |
- module.exports = {
- extends: ['@commitlint/config-conventional'],
- rules: {
- // type 类型定义
- 'type-enum': [
- 2,
- 'always',
- [
- 'feat', // 新功能
- 'fix', // 修复 bug
- 'docs', // 文档变更
- 'style', // 代码格式(不影响功能)
- 'refactor', // 重构(既不是新功能也不是修复 bug)
- 'perf', // 性能优化
- 'test', // 添加测试
- 'build', // 构建系统或外部依赖项的更改
- 'ci', // CI 配置更改
- 'chore', // 其他杂项
- 'revert' // 回滚
- ]
- ],
- // subject 大小写不做校验
- 'subject-case': [0]
- }
- }
|