Husky
Last updated
Last updated
Husky helps to improve your git commits by running checks before a commit is made.
Here we are trying to commit a change that does not follow the eslint rules that we setup for this project. (See line 15 in the image below.)
When we commit, Husky runs yarn run eslint
(specified in ./.husky/pre-commit
), which gives the following error message:
The Git Logs are something like:
The important part of the logs is the error message, which tells us what is wrong and how to fix it:
Learn more about Husky on their .