Closed arronf2e closed 1 year ago
commitlint 验证命令失败与 cz-git 没有关系
使用 commitlint
的配置并使用的 commitlint
CLI 进行验证是要添加至少一个规则的
例如:
rules: {
'subject-empty': [2, 'never'],
},
如果不想添加 commitlint 规则或使用 commitlint 配置文件
可以使用 cz.config.js
与 cz.config.cjs
或在package.json 中指定 js 文件
"config": {
"commitizen": {
"path": "node_modules/cz-git",
"czConfig": "./config/cz.config.js"
}
}
希望有所帮助
✅ Checklist
📄 System Info
🔎 Description
Concise Description
Expected behavior
Steps to reproduce
Screenshots or Screen Recording(if possible)
🔗 Reproduction link / repo:
No response