Husky pre-commit hooks not working with Tower GUI

April 27, 2021


When you try to commit files in Tower, you can run into issues if you have Husky pre-commit hooks installed in your project but not globally on your machine.


If you don’t want to install Husky globally, you can do the following:

Go to your home directory (wherever your .bashrc file is located, for example), and create a new file called .huskyrc.

Inside .huskyrc, write this:


This should help Tower use Husky to run some pre-commit type-checking, or whatever it is you want to do!