Understanding: usage with commitlint
See original GitHub issueI am already using commitlint with conventional commits in my project to lint my commit messages as part of husky commit-msg
githook.
I also want to have the ability to prompt users for correctly format messages while they are committing instead of checking before the actual commit, which commitlint enables with commitlint prompt Ofcourse, commitizen enables this as well with
"config": {
"commitizen": {
"path": "path/to/adapter"
}
},
Is there any benefit of using commitizen if I am using commitlint already?
Or, would it make sense to only use commitizen?
Does commitizen provide a commit-msg
hook? as i would like to still lint my git commit messages if a user does not follow the prompt that commitizen provides for commit.
Assuming I do get some benefits by using both commitizen and commitlint, would it be better for me to use the commitlint adapter with config-conventional
or cz-conventional-changelog
?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:8 (4 by maintainers)
Top GitHub Comments
@castarco I don’t have any issues with making the setup work with
cz-conventional-changelog
andcommitlint
with husky, my question is more to understand whether I should be usingcz-conventional-changelog
at all if I am already usingcommitlint
, should I just use thecommitlint
adapter instead ofcz-conventional-changelog
? And further, should I even usecommitizen
at all if I am already usingcommitlint
? Can I not just use thecommitlint prompt
to setup a commit script same as git-cz, is there a benefit one approach provides over the other?I would like to know that too