feat: 架构调整
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
module.exports = {
|
||||
extends: ['@commitlint/config-conventional'],
|
||||
rules: {
|
||||
'type-enum': [
|
||||
2,
|
||||
'always',
|
||||
[
|
||||
'feat', // 新功能
|
||||
'fix', // 修复 bug
|
||||
'docs', // 文档变更
|
||||
'style', // 代码格式(不影响功能)
|
||||
'refactor', // 重构
|
||||
'perf', // 性能优化
|
||||
'test', // 测试
|
||||
'build', // 构建系统或外部依赖变更
|
||||
'ci', // CI 配置
|
||||
'chore', // 杂项/构建工具
|
||||
'revert', // 回滚
|
||||
],
|
||||
],
|
||||
'type-case': [2, 'always', 'lower-case'],
|
||||
'type-empty': [2, 'never'],
|
||||
'scope-case': [2, 'always', 'lower-case'],
|
||||
'subject-empty': [2, 'never'],
|
||||
'subject-full-stop': [2, 'never', '.'],
|
||||
'header-max-length': [2, 'always', 100],
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user