[Infra] .husky/pre-commit only runs lint-staged with no fallback message when npx is unavailable
Join our community: https://t.me/+DOylgFv1jyJlNzM0
Why this matters
.husky/pre-commit is a single line, npx lint-staged, with no error handling. If a contributor's environment lacks network access for npx to resolve lint-staged (e.g. offline, or a corrupted node_modules), the hook fails with a cryptic npx error instead of a clear message telling the contributor to run npm install.
Acceptance criteria
- [ ] Add a guard that checks lint-staged is installed locally before invoking it
- [ ] On failure, print a clear message pointing to
npm install - [ ] Keep the hook fast for the common case (no added latency when lint-staged is present)
Files to touch
.husky/pre-commit
Out of scope
- Adding new pre-commit checks beyond lint-staged
- Changing what lint-staged lints
@Purity-Euphemia has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
Please I can work on this πThank you
βΉοΈ Repo Maintainers: To accept this application, review their application or assign @Purity-Euphemia to this issue.
@emarkees has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
Hi, I can help resolve this issue. Pls assign
βΉοΈ Repo Maintainers: To accept this application, review their application or assign @emarkees to this issue.
Congratulations, @emarkees! π Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.
π§βπ» @emarkees: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
π€ Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
π Happy Wave π
This issue has been completed by @emarkees as part of the Stellar Wave Program's 10th Wave π₯³
π @emarkees: You earned 150 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
π§βπ» Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.
π This issue has been marked as completed on GrantFox!
@emarkees's PR #1593 was approved and merged by @K1NGD4VID.
π @emarkees: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (707 total points). Track your full progress on GrantFox.
π Great work, @emarkees! Keep contributing to LabsCrypt.