react-doctor 0.5.1 → 0.5.2
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/chunk-N93fKeF6.js +36 -0
- package/dist/cli.js +33118 -3295
- package/dist/index.d.ts +9156 -95
- package/dist/index.js +32091 -2649
- package/dist/lsp.js +32095 -2720
- package/dist/skills/react-doctor/SKILL.md +10 -9
- package/package.json +8 -10
|
@@ -10,13 +10,13 @@ Scans React codebases for security, performance, correctness, and architecture i
|
|
|
10
10
|
|
|
11
11
|
## After making React code changes:
|
|
12
12
|
|
|
13
|
-
Run `npx react-doctor@latest --verbose --
|
|
13
|
+
Run `npx react-doctor@latest --verbose --scope changed` and check the score did not regress.
|
|
14
14
|
|
|
15
15
|
If the score dropped, fix the regressions before committing.
|
|
16
16
|
|
|
17
17
|
## For general cleanup or code improvement:
|
|
18
18
|
|
|
19
|
-
Run `npx react-doctor@latest --verbose` (
|
|
19
|
+
Run `npx react-doctor@latest --verbose` (the default `--scope full`) to scan the full codebase. Fix issues by severity — errors first, then warnings.
|
|
20
20
|
|
|
21
21
|
## /doctor — full local triage workflow
|
|
22
22
|
|
|
@@ -39,12 +39,13 @@ When the user wants to understand a rule, disagrees with one, or wants to disabl
|
|
|
39
39
|
## Command
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
|
-
npx react-doctor@latest --verbose --
|
|
42
|
+
npx react-doctor@latest --verbose --scope changed
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
| Flag
|
|
46
|
-
|
|
|
47
|
-
| `.`
|
|
48
|
-
| `--verbose`
|
|
49
|
-
| `--
|
|
50
|
-
| `--
|
|
45
|
+
| Flag | Purpose |
|
|
46
|
+
| ----------------- | ---------------------------------------------------------------- |
|
|
47
|
+
| `.` | Scan current directory |
|
|
48
|
+
| `--verbose` | Show affected files and line numbers per rule |
|
|
49
|
+
| `--scope changed` | Only report issues introduced vs the base branch (default: full) |
|
|
50
|
+
| `--scope lines` | Only report issues on the changed lines |
|
|
51
|
+
| `--score` | Output only the numeric score |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-doctor",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "Your agent writes bad React. This catches it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility",
|
|
@@ -50,23 +50,21 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@babel/code-frame": "^7.29.0",
|
|
53
|
-
"@effect/platform-node-shared": "4.0.0-beta.70",
|
|
54
53
|
"@sentry/node": "^10.54.0",
|
|
55
54
|
"agent-install": "0.0.5",
|
|
56
55
|
"conf": "^15.1.0",
|
|
57
56
|
"confbox": "^0.2.4",
|
|
58
|
-
"deslop-js": "^0.0.
|
|
59
|
-
"effect": "4.0.0-beta.70",
|
|
57
|
+
"deslop-js": "^0.0.24",
|
|
60
58
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
61
59
|
"jiti": "^2.7.0",
|
|
62
60
|
"magicast": "^0.5.3",
|
|
63
|
-
"oxlint": "
|
|
61
|
+
"oxlint": ">=1.66.0 <1.67.0",
|
|
64
62
|
"prompts": "^2.4.2",
|
|
65
63
|
"typescript": ">=5.0.4 <7",
|
|
66
64
|
"vscode-languageserver": "^9.0.1",
|
|
67
65
|
"vscode-languageserver-textdocument": "^1.0.12",
|
|
68
66
|
"vscode-uri": "^3.1.0",
|
|
69
|
-
"oxlint-plugin-react-doctor": "0.5.
|
|
67
|
+
"oxlint-plugin-react-doctor": "0.5.2"
|
|
70
68
|
},
|
|
71
69
|
"devDependencies": {
|
|
72
70
|
"@types/babel__code-frame": "^7.27.0",
|
|
@@ -74,12 +72,12 @@
|
|
|
74
72
|
"@xterm/headless": "^6.0.0",
|
|
75
73
|
"commander": "^14.0.3",
|
|
76
74
|
"ora": "^9.4.0",
|
|
77
|
-
"@react-doctor/api": "0.5.
|
|
78
|
-
"@react-doctor/core": "0.5.
|
|
79
|
-
"@react-doctor/language-server": "0.5.
|
|
75
|
+
"@react-doctor/api": "0.5.2",
|
|
76
|
+
"@react-doctor/core": "0.5.2",
|
|
77
|
+
"@react-doctor/language-server": "0.5.2"
|
|
80
78
|
},
|
|
81
79
|
"engines": {
|
|
82
|
-
"node": "^20.19.0 || >=22.
|
|
80
|
+
"node": "^20.19.0 || >=22.13.0"
|
|
83
81
|
},
|
|
84
82
|
"scripts": {
|
|
85
83
|
"dev": "vp pack --watch",
|