-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Migrate to lefthook from lint-staged + husky #26304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1835727 to
adb7f02
Compare
|
Does lefthook have something like Husky's |
|
Git itself has a way to disable hooks when committing -- |
|
OK, it turns out there is an environment variable option @queengooborg it's not a good alternative. Setting aside having to remember to set |
As someone who commits a lot too, I understand your concern about hooks very well. I have now tweaked the
I would like to argue that these hooks are no longer slow and disruptive, and avoid you from running @ddbeck Are these runtimes sufficiently low for you to reconsider keeping these hooks enabled in your BCD checkout? |
|
@caugner ah yeah, that's really promising. I'm willing to give these a try. 👍 (also thank you for the nudge on the other PR—I completely forgot about it) |
|
This pull request has merge conflicts that must be resolved before it can be merged. |
|
@queengooborg Are you okay with merging this? |
|
This pull request has merge conflicts that must be resolved before it can be merged. |
|
If nobody objects, I will merge this on Monday. |
|
This pull request has merge conflicts that must be resolved before it can be merged. |
It takes 30 seconds, which is too long for a hook.
This reverts commit 6e6aed0.
Summary
Migrates to lefthook, replacing lint-staged and husky.
Also adds
pre-pushandpost-mergehooks:post-mergehook, limited to themainbranch, runsnpm install.pre-pushhook runsnpm install, followed by lint commands (ESLint, prettier, tsc).Test results and supporting details
Related issues