Skip to content

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

Closed

Description

@grantfox-oss

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

Activity

  1. Purity-Euphemia commented on Sep 27, 2026

    @Purity-Euphemia
    Contributor

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

  2. emarkees commented on Sep 27, 2026

    @emarkees
    Contributor

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

  3. drips-wave commented on Sep 29, 2026

    @drips-wave

    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 🌊

  4. added a commit that references this issue on Oct 20, 2026
  5. drips-wave commented on Oct 20, 2026

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

  6. grantfox-oss commented on Oct 20, 2026

    @grantfox-oss
    Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardStellar WaveIssues in the Stellar wave programThird CampaignCampaign: Third CampaigndevopsInfrastructure and CI/CDgood first issueGood for newcomersinfraCI/CD and infrastructure

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions