Skip to content

Commit

Permalink
chore: 🏡 更新 commitlint 类型规则
Browse files Browse the repository at this point in the history
  • Loading branch information
skiyee committed Apr 2, 2024
1 parent 85329be commit 074f849
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@
"jsonc",
"yaml",
"toml"
],
]
}
5 changes: 4 additions & 1 deletion commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/** @type {import('cz-git').UserConfig} */
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [2, 'always', ['feat', 'perf', 'fix', 'refactor', 'docs', 'build', 'types', 'chore', 'examples', 'test', 'style', 'ci']],
},
prompt: {
messages: {
type: '选择你要提交的类型 :',
Expand All @@ -22,7 +25,7 @@ module.exports = {
{ value: 'docs', name: '📖 Documentation: 文档', emoji: '📖' },
{ value: 'build', name: '📦 Build: 构建工具', emoji: '📦' },
{ value: 'types', name: '🌊 Types: 类型定义', emoji: '🌊' },
{ value: 'chore', name: '🏡 Chore: 构建/依赖/工具', emoji: '🏡' },
{ value: 'chore', name: '🏡 Chore: 简修处理', emoji: '🏡' },
{ value: 'examples', name: '🏀 Examples: 例子展示', emoji: '🏀' },
{ value: 'test', name: '✅ Tests: 测试用例', emoji: '✅' },
{ value: 'style', name: '🎨 Styles: 代码风格', emoji: '🎨' },
Expand Down

0 comments on commit 074f849

Please sign in to comment.