| 1234567891011121314151617181920212223242526272829 |
- module.exports = {
- ignores: [commit => commit.includes('init')],
- extends: ['@commitlint/config-conventional'],
- rules: {
- 'body-leading-blank': [2, 'always'],
- 'footer-leading-blank': [1, 'always'],
- 'header-max-length': [2, 'always', 108],
- 'subject-empty': [2, 'never'],
- 'type-empty': [2, 'never'],
- 'type-enum': [
- 2,
- 'always',
- [
- 'feat', // 新增功能、变更需求
- 'fix', // 修复bug
- 'perf', // 优化性能
- 'refactor', // 代码重构
- 'style', // 代码格式(不影响功能,例如空格、分号等格式修正)
- 'docs', // 文档变更
- 'test', // 测试
- 'ci', // 更改持续集成软件的配置文件和package中的scripts命令,例如scopes: Travis, Circle等
- 'chore', // 变更构建流程或辅助工具(依赖更新/脚手架配置修改/webpack、gulp、npm等)
- 'revert', // 代码回退
- 'types', // ts类型定义文件更改
- 'wip', // work in process开发中
- ],
- ],
- },
- };
|