I don’t know what’s available for the Rust ecosystem, but for JS/TS someone already did all the hard work and it just works like magic. The library is called Husky.
husky has to be one of the most annoying and outright hostile libraries I’ve seen. Anytime I pull an open source project to get it working on my machine I have to go through and set up an entire development pipeline just to make a code change even if I never intend on upstreaming that change because husky forces formatting on commits. What an idiotic thing to do. The article covers this clearly. It’s just not something that should be done on commit.
Never had any issues.
The article is just a sad dev ramble.
I don’t know what’s available for the Rust ecosystem, but for JS/TS someone already did all the hard work and it just works like magic. The library is called Husky.
Can you share what you use git commit hooks for?
I run an eslint fix and prettier formatter. It’s a typescript project.
husky has to be one of the most annoying and outright hostile libraries I’ve seen. Anytime I pull an open source project to get it working on my machine I have to go through and set up an entire development pipeline just to make a code change even if I never intend on upstreaming that change because husky forces formatting on commits. What an idiotic thing to do. The article covers this clearly. It’s just not something that should be done on commit.
Wow. How difficult is it to add
--no-verifyor simply-nflag to skip the pre-commit hooks?What’s the point then? Why bother with hooks at all?