-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommitlint.config.cjs
37 lines (35 loc) · 1.31 KB
/
commitlint.config.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// https://github.com/conventional-changelog/commitlint/#what-is-commitlint
// 例:feat: 增加功能
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
[
'feat', // 新功能(feature)
'fix', // 修补bug
'docs', // 文档(documentation)
'style', // 格式、样式(不影响代码运行的变动)
'refactor', // 代码重构
'perf', // 性能改进
'test', // 添加测试
'ci', // 持续集成
'chore', // 构建过程或辅助工具的变动
'revert', // 回滚到上一个版本
'workflow', // 工作流改进
'mod', // 不确定分类的修改
'wip', // 开发中
'types', // 类型修改
'release', // 版本发布
'resolve a conflict', // 解决冲突
'merge branch', // 合并分支
'dependencies', // 依赖项修改
'devDependencies', // 开发依赖修改
'strengthen', // 加强,巩固
],
],
'subject-full-stop': [0, 'never'],
'subject-case': [0, 'never'],
},
};