react-doctor 0.0.36 → 0.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1 -1
- package/dist/skills/react-doctor/SKILL.md +20 -7
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2512,7 +2512,7 @@ const promptProjectSelection = async (workspacePackages, rootDirectory) => {
|
|
|
2512
2512
|
|
|
2513
2513
|
//#endregion
|
|
2514
2514
|
//#region src/cli.ts
|
|
2515
|
-
const VERSION = "0.0.
|
|
2515
|
+
const VERSION = "0.0.37";
|
|
2516
2516
|
const VALID_FAIL_ON_LEVELS = new Set([
|
|
2517
2517
|
"error",
|
|
2518
2518
|
"warning",
|
|
@@ -1,19 +1,32 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: react-doctor
|
|
3
|
-
description:
|
|
4
|
-
version: 1.0.0
|
|
3
|
+
description: Use when finishing a feature, fixing a bug, before committing React code, or when the user wants to improve code quality or clean up a codebase. Checks for score regression. Covers lint, dead code, accessibility, bundle size, architecture diagnostics.
|
|
4
|
+
version: "1.0.0"
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# React Doctor
|
|
8
8
|
|
|
9
|
-
Scans
|
|
9
|
+
Scans React codebases for security, performance, correctness, and architecture issues. Outputs a 0–100 health score.
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## After making React code changes:
|
|
12
|
+
|
|
13
|
+
Run `npx -y react-doctor@latest . --verbose --diff` and check the score did not regress.
|
|
14
|
+
|
|
15
|
+
If the score dropped, fix the regressions before committing.
|
|
16
|
+
|
|
17
|
+
## For general cleanup or code improvement:
|
|
18
|
+
|
|
19
|
+
Run `npx -y react-doctor@latest . --verbose` (without `--diff`) to scan the full codebase. Fix issues by severity — errors first, then warnings.
|
|
20
|
+
|
|
21
|
+
## Command
|
|
12
22
|
|
|
13
23
|
```bash
|
|
14
24
|
npx -y react-doctor@latest . --verbose --diff
|
|
15
25
|
```
|
|
16
26
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
27
|
+
| Flag | Purpose |
|
|
28
|
+
| ----------- | --------------------------------------------- |
|
|
29
|
+
| `.` | Scan current directory |
|
|
30
|
+
| `--verbose` | Show affected files and line numbers per rule |
|
|
31
|
+
| `--diff` | Only scan changed files vs base branch |
|
|
32
|
+
| `--score` | Output only the numeric score |
|