1.3.0 • Published 2 months ago
@ifanrx/commitlint-config-standard-hgflow v1.3.0
规范
遵循 Conventional Commits 规范
<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>`
<footer>
说明
- feat: 新功能
- fix: 修复 bug
- chore: 杂活
- refactor: 重构或代码优化
- style: 代码格式类的修改
- build: 打包构建相关
- test: 测试相关
- revert: 回退版本
- docs: 只修改文档或注释
- perf: 性能优化
- ci: ci 配置
使用方法
pnpm install @ifanrx/commitlint-config-standard-hgflow @commitlint/cli -D
// .commitlintrc.js
module.exports = {
extends: ['@ifanrx/commitlint-config-standard-hgflow'],
}
scope-enum
按各项目自行设定,例:
module.exports = {
rules: {
'scope-enum': [2, 'always', ['miniapp', 'dashboard', 'faas']],
},
}