Skip to content

chore: add pre-commit prettier tooling#92

Open
tansawit wants to merge 2 commits intomainfrom
chore/prettier-tooling
Open

chore: add pre-commit prettier tooling#92
tansawit wants to merge 2 commits intomainfrom
chore/prettier-tooling

Conversation

@tansawit
Copy link
Collaborator

@tansawit tansawit commented Feb 18, 2026

Summary

This PR adds commit-time formatting automation while keeping the existing Prettier formatting policy for docs unchanged.

What changed

  • Added husky and lint-staged as dev dependencies.
  • Added prepare script in package.json so hooks are installed on dependency install.
  • Added lint-staged config to run prettier --ignore-unknown --write on staged files.
  • Added .husky/pre-commit hook to execute npx lint-staged.
  • Included a minimal formatting fix in home/tools/wallet.mdx so the existing repo-wide prettier --check . CI job remains green under the current policy.

What did not change

  • .prettierrc policy remains exactly as before (printWidth: 80, proseWrap: always).
  • No repo-wide docs reflow/normalization is included.

Why

  • Prevents new Prettier violations from entering PRs by auto-formatting staged files at commit time.
  • Avoids broad MDX churn and keeps docs wrapping behavior unchanged.

@coderabbitai
Copy link

coderabbitai bot commented Feb 18, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/prettier-tooling

Comment @coderabbitai help to get the list of available commands and usage tips.

@tansawit tansawit changed the title chore: add prettier tooling and normalize docs formatting chore: add pre-commit prettier tooling Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments