Open hutber opened 6 years ago
Some more information in here: https://stackoverflow.com/questions/48789346/pre-commit-not-running-in-linux
@hutber I had the same issue. I installed pre-commit before I had the .git in my project. To fix, make sure you have the .git in your project folder before installing pre-commit.
What if .git folder is several directories up? It seems that pre-commit only cares about .git folder which is in same directory as package.json.
@scssyworks eventually I've implemented it "manually" - see https://stackoverflow.com/a/70631351/1535127
I believe this should work as pre-commit will run anything defined in scripts.
Console with link not running
Folder Structure
Running Linux Mint 18.3 node v8 npm v5