git – lint-staged not running on precommit


prettier is not running on precommit. This worked with the same configuration in other projects, so I’m baffled why it’s not working this time.

This is the relevant section of my package.json file:

Edit. Here are the relevant devDependencies:


Reinstalled husky and now seems to be working. Thanks @mpasko256 for your help!

Leave a Reply