For Frontend devs: Is there a reason we use husky ...
# questions
b
For Frontend devs: Is there a reason we use husky for pre-commits? is there something special about it? Background: I want to move its functionality to .pre-commit-config.yaml to streamline the pre-commit system.
f
No particular reason, it was adopted a long while back.
I want to move its functionality to .pre-commit-config.yaml to streamline the pre-commit system.
Do you have a PR or issue proposal open to take a look?
b
by now it is ready for review.
p
though, that introduces a python tooling dependency; not everyone's a fan of python 🙂 (coming from a node background myself; I do prefer husky), so it depends what contributors you need most and how you see the community grow over time; never seen a node/js frontend project using pre-commit +1 for consistency though, been using precommit on a go project, and it's at least as reliable as husky please don't prescribe a particular dep on my machine; might need a mechanism that checks for pre-commit's existence, and suggests multiple ways to install it; and allows me to ignore it altogether (which will probably need a CI gate) I suspect this comes up because backend and frontend are all in the same place in one giant OpenHands project; I give it 1 month until you see a frontend person ask the exact opposite question "where's husky?" 😛