Pre-commit hooks for formatting and linting

Aperta
#166 6 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Joycejay17 ci sta già lavorando.

Dal 22/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

difficulty: beginner dx help wanted Stellar Wave

Difficulty: Beginner

Problem

Contributors can commit unformatted or lint-failing code and only find out when CI fails.

Why it matters

Faster feedback and fewer fix-up commits.

Scope of work

Add a lightweight hook runner (for example lefthook or husky) that runs Prettier and the web linter on staged web files and cargo fmt --check on staged Rust files, with a documented opt-out.

Expected outcome

Commits that would fail CI formatting or lint are caught locally.

Acceptance criteria

  • Hooks install with one documented command.
  • Hooks are fast and only run on relevant files.
  • The opt-out is documented.

Relevant files

  • hook configuration (new), web/package.json, CONTRIBUTING.md

Dependencies

Depends on #98 (Prettier setup).

Maintainer discussion needed?

No.

Lingua principale
TypeScript
Stelle
0
Fork
4
Merge medio
54m
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Yormee-103/PayLoop

Tutte le issue di Yormee-103/PayLoop

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.