flowfi icon indicating copy to clipboard operation
flowfi copied to clipboard

[Infra] .husky/pre-commit only runs lint-staged with no fallback message when npx is unavailable

Open grantfox-oss[bot] opened this issue 4 months ago β€’ 5 comments

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

grantfox-oss[bot] avatar Jul 29 '26 12:07 grantfox-oss[bot]

@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.

Purity-Euphemia avatar Sep 27 '26 15:09 Purity-Euphemia

@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.

emarkees avatar Sep 27 '26 15:09 emarkees

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 🌊

drips-wave[bot] avatar Sep 29 '26 16:09 drips-wave[bot]

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.

drips-wave[bot] avatar Oct 20 '26 07:10 drips-wave[bot]

πŸŽ‰ 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.

grantfox-oss[bot] avatar Oct 20 '26 07:10 grantfox-oss[bot]