Skip to main content

Quick Start

Run React Doctor at your project root:

Verbose Output

Show affected files and line numbers for each diagnostic:

Score Only Mode

Get just the health score (0-100) without diagnostics:
This is useful for scripting and tracking score over time:

Monorepo / Workspace Projects

1

Scan specific project

Use --project to scan a single workspace project:
2

Scan multiple projects

Comma-separate project names to scan multiple:
3

Scan all projects without prompts

Use -y or --yes to skip the project selection prompt:

Selective Analysis

Skip Linting

Run only dead code detection:

Skip Dead Code Detection

Run only linting:

Skip Both (Dry Run)

Validate configuration and project detection:

Diff Mode

Scan only files that changed compared to a base branch:
Diff mode is perfect for:
  • Pull request checks
  • Incremental adoption in large codebases
  • Faster scans during development
When using --diff in CI, make sure to check out the full git history with fetch-depth: 0

Package Manager Variations

Common Workflows

Development Workflow

Quick check during development:

Pre-Release Check

Full scan before merging to main:

Score Tracking

Track score in CI and store as artifact:

Offline Mode

Skip telemetry (anonymous scoring API calls):
Telemetry is anonymous and only used to calculate your health score. No code or file names are sent.

Version Check

Display the installed version:

Help

View all available options: