Husky does not automagically work as expected
Closed this issue · 3 comments
TGiles commented
Describe the bug
When contributing to this repository, husky does not automatically lint commit messages. This causes me to nit commit messages instead of having a tool do it for me.
To Reproduce
Steps to reproduce the behavior:
- Clone auto-lighthouse on a device that does not have husky's hooks enabled
- Create test branch
- Create junk commit with a failing commit message
Expected behavior
Husky prevents this commit message from being committed.
TGiles commented
Hmm, looks like this was a relatively recent change, according to typicode's blog post explaining why husky doesn't auto install anymore
TGiles commented
Ah so following the previous blog post, plus this guide from the commitlint repository solved the "husky doesn't work automagically" issue. PR will be up shortly