Skip to content

chore: remove husky - #2544

Open
mistrykaran91 wants to merge 1 commit into
mainfrom
feat/2411-remove-husky
Open

chore: remove husky#2544
mistrykaran91 wants to merge 1 commit into
mainfrom
feat/2411-remove-husky

Conversation

@mistrykaran91

@mistrykaran91 mistrykaran91 commented Aug 12, 2026

Copy link
Copy Markdown
Member

@mistrykaran91 mistrykaran91 linked an issue Aug 12, 2026 that may be closed by this pull request
@mistrykaran91
mistrykaran91 force-pushed the feat/2411-remove-husky branch from 021da6d to 38bc468 Compare August 12, 2026 11:51
@mistrykaran91
mistrykaran91 marked this pull request as ready for review August 17, 2026 10:06
@mistrykaran91
mistrykaran91 requested a review from a team as a code owner August 17, 2026 10:06
@dr-itz

dr-itz commented Aug 18, 2026

Copy link
Copy Markdown
Member

seems to work. But I still see little value 🤷

@kfenner wanna try this on Windoze before you get you Mac?

@dr-itz

dr-itz commented Aug 18, 2026

Copy link
Copy Markdown
Member

wait...it didn't do a thing for me as I'm heavily using worktrees and I tested this in a worktree. So it was still husky in the main repo that run stuff

@dr-itz

dr-itz commented Aug 18, 2026

Copy link
Copy Markdown
Member

ok, so this is useless:

  • husky left behind a config to point the hooks directory to .husky/_
  • removing this, running git-lfs install and npx lefthook install installs everything in the default hook directory in .git/hooks
  • the installed hook, e.g. the commit-msg is a shim that either runs a globally installed lefthook or the one from a hardcoded path to node_modules in the main repo of a worktree

so if the main worktree doesn't have lefthook for whatever reason, it will break in every worktree. Husky changing the hook directory worked fine here.

Conclusion: This is completely useless 👎

@mistrykaran91

Copy link
Copy Markdown
Member Author

ok, so this is useless:

  • husky left behind a config to point the hooks directory to .husky/_
  • removing this, running git-lfs install and npx lefthook install installs everything in the default hook directory in .git/hooks
  • the installed hook, e.g. the commit-msg is a shim that either runs a globally installed lefthook or the one from a hardcoded path to node_modules in the main repo of a worktree

so if the main worktree doesn't have lefthook for whatever reason, it will break in every worktree. Husky changing the hook directory worked fine here.

Conclusion: This is completely useless 👎

Ok, so should we try something else or live without it or should we try the https://hk.jdx.dev/ which might require to install it manually ?

@mistrykaran91 mistrykaran91 changed the title chore: remove husky and integrate lefthook for commit message linting chore: remove husky Aug 19, 2026
@mistrykaran91
mistrykaran91 force-pushed the feat/2411-remove-husky branch from 979d8e7 to f767401 Compare August 19, 2026 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

remove husky

2 participants