-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
26 lines (26 loc) · 1.08 KB
/
commitlint.config.js
File metadata and controls
26 lines (26 loc) · 1.08 KB
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
/**
* feat: 一个新功能
* fix: 一个bug
* docs: 文档增删改
* style: 样式修改(空白、格式、缺少分号等)
* refactor: 既不修复bug也不添加新功能的更改
* perf: 性能优化
* test: 增加测试
* build: 影响构建系统或外部依赖项的更改(示例范围: gulp、broccoli,npm)
* ci: 对CI配置文件和脚本的更改(示例范围: Travis, Circle, BrowserStack, SauceLabs)
* chore: 除src目录或测试文件以外的修改
* revert: 回退历史版本
* conflict: 修改冲突
* font: 字体文件更新
* delete: 删除文件
* stash: 暂存文件
*/
module.exports = {
extends: ['@commitlint/config-conventional'],
helpUrl: 'https://github.com/conventional-changelog/commitlint/#what-is-commitlint',
rules: {
'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'style', 'refactor', 'perf', 'test', 'build', 'ci', 'chore', 'revert', 'conflict', 'font', 'delete', 'stash']],
'type-empty': [2, 'never'], // never: type不能为空; always: type必须为空
'type-case': [0, 'always', 'lower-case'],
},
};