react-doctor 0.8.1 → 0.8.2-dev.d489fa0

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.
@@ -94,7 +94,7 @@ syntax.
94
94
  - `no-danger` — Raw HTML injection can run unsafe markup.
95
95
  - `dangerous-html-sink` — HTML injection sink with dynamic content.
96
96
  - `jsx-no-script-url` — `javascript:` URL in JSX.
97
- - `jsx-no-target-blank` — Unsafe `target="_blank"` link.
97
+ - `jsx-no-target-blank` — Unsafe `target="_blank"` link for a declared legacy browser or Electron target.
98
98
  - `no-eval` — `eval()` runs untrusted code strings.
99
99
  - `no-secrets-in-client-code` — Secret in client code.
100
100
  - `auth-token-in-web-storage` — Auth token in web storage.
@@ -18,6 +18,10 @@ If the score dropped, fix the regressions before committing.
18
18
 
19
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
+ ## For a focused UI design audit:
22
+
23
+ Run `npx react-doctor@latest design --verbose`. This selects only design-tagged UI composition, typography, interaction, accessibility, and motion rules, including focused rules that remain opt-in during a general health scan.
24
+
21
25
  ## /doctor — full local triage workflow
22
26
 
23
27
  When the user types `/doctor`, says "run react doctor", or asks for a full triage / cleanup pass (not just a regression check), fetch the canonical local-triage playbook and follow every step in it:
@@ -49,3 +53,4 @@ npx react-doctor@latest --verbose --scope changed
49
53
  | `--scope changed` | Only report issues introduced vs the base branch (default: full) |
50
54
  | `--scope lines` | Only report issues on the changed lines |
51
55
  | `--score` | Output only the numeric score |
56
+ | `design` | Run only the focused UI design diagnostics |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-doctor",
3
- "version": "0.8.1",
3
+ "version": "0.8.2-dev.d489fa0",
4
4
  "description": "Your agent writes bad React. This catches it",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -65,8 +65,8 @@
65
65
  "vscode-languageserver-textdocument": "^1.0.12",
66
66
  "vscode-uri": "^3.1.0",
67
67
  "yaml": "^2.9.0",
68
- "deslop-js": "0.8.1",
69
- "oxlint-plugin-react-doctor": "0.8.1"
68
+ "deslop-js": "0.8.2",
69
+ "oxlint-plugin-react-doctor": "0.8.2-dev.d489fa0"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@types/babel__code-frame": "^7.27.0",
@@ -74,9 +74,9 @@
74
74
  "@xterm/headless": "^6.0.0",
75
75
  "commander": "^14.0.3",
76
76
  "ora": "^9.4.0",
77
- "@react-doctor/api": "0.8.1",
78
- "@react-doctor/core": "0.8.1",
79
- "@react-doctor/language-server": "0.8.1"
77
+ "@react-doctor/api": "0.8.2",
78
+ "@react-doctor/language-server": "0.8.2",
79
+ "@react-doctor/core": "0.8.2"
80
80
  },
81
81
  "engines": {
82
82
  "node": "^20.19.0 || >=22.13.0"