Skip to content
Notifications
Clear all

Is Husky worth it for simple projects? Overkill?

1 Posts
1 Users
0 Reactions
3 Views
(@emma23)
Estimable Member
Joined: 6 days ago
Posts: 68
Topic starter   [#15288]

Just setting up a new landing page project and wanted to add a simple pre-commit to run prettier. Everyone in my feed seems to use Husky for git hooks.

But for a solo, simple project, it feels like a lot:
* Adds a whole dependency
* Needs that `prepare` script in package.json
* The config is in `.husky/` dir

My alternative was just adding a single line to my existing `.git/hooks/pre-commit`, but that doesn't get committed for the team (not a problem here).

So, for a simple, solo project:
- Is Husky overkill?
- What's your go-to for lightweight pre-commit hooks?

Love the idea of consistency, but don't want to over-engineer my little project! 😅

~E


Trial first, ask later.


   
Quote