1 Star 0 Fork 165

花裤熊二 / unibest

forked from 菲鸽 / unibest 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
commitlint.config.cjs 1.50 KB
一键复制 编辑 原始数据 按行查看 历史
菲鸽 提交于 2024-02-01 17:53 . refine: commitlint config
// commitlint.config.cjs
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
// 'body-leading-blank': [2, 'always'], // 主体前有空行,默认就是 always
// 'footer-leading-blank': [2, 'always'], // 末行前有空行,默认就是 always
// 'header-max-length': [2, 'always', 108], // 首行最大长度,默认就是 always,72
// 'subject-empty': [2, 'never'], // 标题不可为空,默认就是 never
// 'type-empty': [2, 'never'], // 类型不可为空,默认就是 never
// 允许的类型
'type-enum': [
2,
'always',
[
'build', // 构造工具、外部依赖(webpack、npm)
'chore', // 不涉及 src、test 的其他修改(构建过程或辅助工具的变更)
'ci', // 修改项目继续集成流程(Travis,Jenkins,GitLab CI,Circle等)
'docs', // 文档
'feat', // 新增功能
'fix', // bug 修复
'perf', // 性能优化
'refactor', // 重构
'revert', // 回退
'style', // 代码风格(不影响代码含义)
'test', // 测试
// 下面几个是自定义新增的
'wip', // 开发中
'refine', // 小优化,没有到 refactor 的程度
],
],
},
}
// @see https://commitlint.js.org/#/reference-rules?id=type-enum
// 默认值为:
// [
// 'build',
// 'chore',
// 'ci',
// 'docs',
// 'feat',
// 'fix',
// 'perf',
// 'refactor',
// 'revert',
// 'style',
// 'test',
// ];
1
https://gitee.com/xiehai001/unibest.git
git@gitee.com:xiehai001/unibest.git
xiehai001
unibest
unibest
main

搜索帮助

53164aa7 5694891 3bd8fe86 5694891