Pre-commit hooks for formatting and linting

オープン
#166 コメント 6 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Joycejay17 がすでに取り組んでいます。

2026年11月22日 から。

評価

この issue はまだ評価されていません。

説明

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.

主要言語
TypeScript
スター
0
フォーク
4
平均マージ
54分
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Yormee-103/PayLoop のほかの issue

Yormee-103/PayLoop の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。