DEV Community

Discussion on: Git hook is the excellent alternative to Husky

Collapse
 
codefinity profile image
Manav Misra

Well, not necessarily. npx mrm lint-staged will add that to 'package.json' so it's all included with npm i. I use it for 'student repos' in my classes.
As you say though, we are adding dependencies. So, maybe convenience for some additional package.
So, it adds something like this one.
If it's 'new project' - not 'template repo,' then, yes, you add it manually each time.

Thread Thread
 
krzysztofkaczy9 profile image
Krzysztof Kaczyński • Edited

Yes, but now you are adding husky and lint-staged and this article is about that maybe you do not need it because there is actually no so much work to set up git hooks in my opinion.

This solution with husky and lint-staged was my first attempt to solve this task. I wrote about that in Backstory section