TGiles/auto-lighthouse

Husky does not automagically work as expected

Closed this issue · 3 comments

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:

  1. Clone auto-lighthouse on a device that does not have husky's hooks enabled
  2. Create test branch
  3. Create junk commit with a failing commit message

Expected behavior
Husky prevents this commit message from being committed.

Hmm, looks like this was a relatively recent change, according to typicode's blog post explaining why husky doesn't auto install anymore

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

Closed by #255