Skip to content

Commit

Permalink
fix(commit config): 修改提交代码配置
Browse files Browse the repository at this point in the history
  • Loading branch information
luoxue committed Nov 18, 2019
1 parent 3bc624a commit dd90ff9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 23 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@
* **feat:** asdada ([64090c7](https://github.com/luoxue-victor/learn_webpack/commit/64090c7))


### 🐛 Bug 修复

* **changelog:** fix some changelog ([3bc624a](https://github.com/luoxue-victor/learn_webpack/commit/3bc624a))



24 changes: 1 addition & 23 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'subject-case': [0, 'never'],
'subject-empty': [2, 'never'],
'type-empty': [2, 'never'],
'type-enum': [
2,
'always',
[
"ci", // 集成开发集成部署
"docs", // Adds or alters documentation. 仅仅修改了文档,比如README, CHANGELOG, CONTRIBUTE等等
"chore", // Other changes that don't modify src or test files. 改变构建流程、或者增加依赖库、工具等
"feat", // Adds a new feature. 新增feature
"fix", // Solves a bug. 修复bug
"merge", // Merge branch ? of ?.
"perf", // Improves performance. 优化相关,比如提升性能、体验
"refactor", // Rewrites code without feature, performance or bug changes. 代码重构,没有加新功能或者修复bug
"revert", // Reverts a previous commit. 回滚到上一个版本
"style", // Improves formatting, white-space. 仅仅修改了空格、格式缩进、都好等等,不改变代码逻辑
"test", // Adds or modifies tests. 测试用例,包括单元测试、集成测试等
]
]
}
extends: ['./commit/lib/lint', '@commitlint/config-conventional']
};

0 comments on commit dd90ff9

Please sign in to comment.