Replies: 1 comment 1 reply
-
Hey! Lefthook requires the configuration, it doesn't provide the default one, so you have to do it yourself. There is a guide for commitlint: https://lefthook.dev/examples/commitlint.html. What lefthook does: it runs a specific command (or script) when git runs a hook. In more details lefthook adds a special script to |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
New to Lefthook—Need Some Clarity
I’m new here... well, I somehow fell into the rabbit hole of conventional commits, as you probably have too.
But my main point is: What exactly is Lefthook?
I found it described as a "Husky alternative written in Go", and, well, you know—the faster, the better (parallel scripts and all that).
The Beginning
Following the NPM installation guide, I did the following:
Then I tried the good old
git commit
, and... nothing happened.The Confusion
From what I understood, it was supposed to just work, but that seemed too easy. So, I dug into the documentation and found this:
🔗 [Lefthook Commands](https://lefthook.dev/usage/commands.html)
After running:
...a
.husky
folder and files appeared!At this point, I realized—I don’t actually know what Lefthook is.
What I Need Help With
If anyone has the time, here’s my setup:
Any guidance would be greatly appreciated! 🚀
Beta Was this translation helpful? Give feedback.
All reactions