react-doctor icon indicating copy to clipboard operation
react-doctor copied to clipboard

docs: add husky and lint-staged pre-commit integration guide (#203)

Open PranavAgarkar07 opened this issue 6 months ago • 2 comments

Summary

Adds documentation for integrating react-doctor with husky and lint-staged as a pre-commit hook. The --staged mode is already designed for pre-commit workflows — this just shows users how to wire it up.

Closes #203


[!NOTE] Low Risk Low risk: documentation-only change that doesn’t alter runtime behavior or interfaces.

Overview Adds a new README section describing how to run react-doctor in a pre-commit hook using Husky + lint-staged, including example commands and a lint-staged config that runs react-doctor --staged --fail-on error --yes to block commits on errors (with notes on stricter warning gating / --json).

Reviewed by Cursor Bugbot for commit 9a3f3e46b1a73bc41aa42debeeed43412da0ea0a. Bugbot is set up for automated code reviews on this repo. Configure here.

PranavAgarkar07 avatar May 12 '26 16:05 PranavAgarkar07

[!NOTE] No issues found

react-doctor[bot] avatar May 12 '26 16:05 react-doctor[bot]

@PranavAgarkar07 is attempting to deploy a commit to the Million Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar May 12 '26 16:05 vercel[bot]