mirror of
https://gitee.com/ShopeX/ECShopX_mobile-frontend
synced 2026-05-13 01:45:57 +08:00
44 lines
1.5 KiB
JavaScript
44 lines
1.5 KiB
JavaScript
module.exports = {
|
||
extends: ['@commitlint/config-conventional', 'cz'],
|
||
rules: {
|
||
'type-enum': [
|
||
2,
|
||
'always',
|
||
[
|
||
'feature', // 新功能(feature)
|
||
'bug', // 此项特别针对bug号,用于向测试反馈bug列表的bug修改情况
|
||
'fix', // 修补bug
|
||
'ui', // 更新 ui
|
||
'docs', // 文档(documentation)
|
||
'style', // 格式(不影响代码运行的变动)
|
||
'perf', // 性能优化
|
||
'release', // 发布
|
||
'deploy', // 部署
|
||
'refactor', // 重构(即不是新增功能,也不是修改bug的代码变动)
|
||
'test', // 增加测试
|
||
'chore', // 构建过程或辅助工具的变动
|
||
'revert', // feat(pencil): add ‘graphiteWidth’ option (撤销之前的commit)
|
||
'merge', // 合并分支, 例如: merge(前端页面): feature-xxxx修改线程地址
|
||
'build' // 打包
|
||
]
|
||
],
|
||
// <type> 格式 小写
|
||
'type-case': [2, 'always', 'lower-case'],
|
||
// <type> 不能为空
|
||
'type-empty': [2, 'never'],
|
||
// <scope> 范围不能为空
|
||
'scope-empty': [2, 'never'],
|
||
// <scope> 范围格式
|
||
'scope-case': [0],
|
||
// <subject> 主要 message 不能为空
|
||
'subject-empty': [2, 'never'],
|
||
// <subject> 以什么为结束标志,禁用
|
||
'subject-full-stop': [0, 'never'],
|
||
// <subject> 格式,禁用
|
||
'subject-case': [0, 'never'],
|
||
// <body> 以空行开头
|
||
'body-leading-blank': [1, 'always'],
|
||
'header-max-length': [0, 'always', 72]
|
||
}
|
||
}
|