feat: 修改git提交配置
This commit is contained in:
parent
ae20f703c2
commit
d3eff4c03c
|
|
@ -6,24 +6,7 @@ module.exports = {
|
||||||
// @see https://commitlint.js.org/#/reference-rules
|
// @see https://commitlint.js.org/#/reference-rules
|
||||||
|
|
||||||
// 提交类型枚举,git提交type必须是以下类型
|
// 提交类型枚举,git提交type必须是以下类型
|
||||||
"type-enum": [
|
'type-enum': [0],
|
||||||
2,
|
|
||||||
"always",
|
|
||||||
[
|
|
||||||
"feat", // 新增功能
|
|
||||||
"fix", // 修复缺陷
|
|
||||||
"docs", // 文档变更
|
|
||||||
"style", // 代码格式(不影响功能,例如空格、分号等格式修正)
|
|
||||||
"refactor", // 代码重构(不包括 bug 修复、功能新增)
|
|
||||||
"perf", // 性能优化
|
|
||||||
"test", // 添加疏漏测试或已有测试改动
|
|
||||||
"build", // 构建流程、外部依赖变更(如升级 npm 包、修改 webpack 配置等)
|
|
||||||
"ci", // 修改 CI 配置、脚本
|
|
||||||
"revert", // 回滚 commit
|
|
||||||
"chore", // 对构建过程或辅助工具和库的更改(不影响源文件、测试用例)
|
|
||||||
"wip", // 对构建过程或辅助工具和库的更改(不影响源文件、测试用例)
|
|
||||||
],
|
|
||||||
],
|
|
||||||
"subject-case": [0], // subject大小写不做校验
|
"subject-case": [0], // subject大小写不做校验
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue