1 Star 0 Fork 145

张兴龙 / jetlinks-ui-vue

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
.commitlintrc.cjs 897 Bytes
Copy Edit Raw Blame History
xieyonghong authored 2023-01-12 09:54 . fix: 修复commit信息无法校验
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
[
'build', // 编译相关修改(新版本发布)
'feat', // 新功能
'fix', // 修复bug
'update', // 更新某功能
'refactor', // 重构
'docs', // 文档
'chore', // 增加依赖或库
'style', // 格式(不影响代码变动)
'revert', // 撤销commit 回滚上一版本
'perf', // 性能优化
]
],
'scope-case': [0],
},
plugins: [
{
rules: {
"commit-rule": ({ raw }) => {
return [
/^\[(build|feat|fix|update|refactor|docs|chore|style|revert|perf)].+/g.test(raw),
`commit备注信息格式错误,格式为 <[type] 修改内容>,type支持${types.join(",")}`
]
}
}
}
]
}
1
https://gitee.com/z550/jetlinks-ui-vue.git
git@gitee.com:z550/jetlinks-ui-vue.git
z550
jetlinks-ui-vue
jetlinks-ui-vue
master

Search