Files
survey-frontend/commitlint.config.js
2026-01-29 14:45:05 +08:00

23 lines
468 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* feat新功能
* fix修补bug
* refactor重构某个功能
* revert: 回滚到上一个版本
* style仅样式改动
* docs仅文档新增/改动
* chore构建过程或辅助工具的变动
*/
module.exports = {
extends: [
// 直接继承官网规则
'@commitlint/config-conventional'
],
rules: {
'type-enum': [
2,
'always',
['feat', 'fix', 'refactor', 'revert', 'style', 'docs', 'chore']
]
}
}