react-doctor 0.8.2-dev.8d4d5a8 → 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.
- package/README.md +21 -3
- package/dist/cli.js +3 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -27,7 +27,17 @@ npx react-doctor@latest
|
|
|
27
27
|
|
|
28
28
|
https://github.com/user-attachments/assets/07cc88d9-9589-44c3-aa73-5d603cb1c570
|
|
29
29
|
|
|
30
|
-
### 2.
|
|
30
|
+
### 2. Run a focused design audit
|
|
31
|
+
|
|
32
|
+
Use the design command when you only want UI composition, typography, interaction, accessibility, and motion findings:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npx react-doctor@latest design
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
This activates the complete design rule family, including focused rules that stay opt-in during a general health scan, and skips unrelated dead-code, supply-chain, custom-plugin, and health-score passes. It accepts the normal scan flags, including `--scope`, `--project`, `--verbose`, and `--json`.
|
|
39
|
+
|
|
40
|
+
### 3. Install for agents
|
|
31
41
|
|
|
32
42
|
Once you have an audit, you can install the skill for your coding agent to learn from the issues and fix them in the future.
|
|
33
43
|
|
|
@@ -37,7 +47,7 @@ npx react-doctor@latest install
|
|
|
37
47
|
|
|
38
48
|
Works with Claude Code, Cursor, Codex, OpenCode, and many more.
|
|
39
49
|
|
|
40
|
-
###
|
|
50
|
+
### 4. Run in CI
|
|
41
51
|
|
|
42
52
|
React Doctor reviews every pull request and reports only the issues your change introduced, not your existing backlog. Set it up with one command:
|
|
43
53
|
|
|
@@ -49,12 +59,20 @@ This adds the workflow, scans every pull request, and posts a summary comment. C
|
|
|
49
59
|
|
|
50
60
|
[CI docs →](https://react.doctor/ci)
|
|
51
61
|
|
|
52
|
-
###
|
|
62
|
+
### 5. Configure rules
|
|
53
63
|
|
|
54
64
|
You can configure which rules to run and how to run them in `doctor.config.ts`.
|
|
55
65
|
|
|
56
66
|
[Learn more →](https://react.doctor/docs/configuration/config-files)
|
|
57
67
|
|
|
68
|
+
### 6. Consume JSON
|
|
69
|
+
|
|
70
|
+
Use `--json` for stdout or `--json-out <path>` for a file. The default
|
|
71
|
+
`schemaVersion: 3` report includes deterministic diagnostic IDs and exact
|
|
72
|
+
per-project scan coverage.
|
|
73
|
+
|
|
74
|
+
[JSON report contract →](./docs/json-report.md)
|
|
75
|
+
|
|
58
76
|
## Telemetry
|
|
59
77
|
|
|
60
78
|
The CLI reports crashes, basic run traces, and anonymous usage counters to [Sentry](https://sentry.io/) to help us fix bugs and prioritize work.
|
package/dist/cli.js
CHANGED
|
@@ -77391,7 +77391,7 @@ const makeNoopConsole = () => ({
|
|
|
77391
77391
|
});
|
|
77392
77392
|
//#endregion
|
|
77393
77393
|
//#region src/cli/utils/version.ts
|
|
77394
|
-
const VERSION = "0.8.2-dev.
|
|
77394
|
+
const VERSION = "0.8.2-dev.d489fa0";
|
|
77395
77395
|
//#endregion
|
|
77396
77396
|
//#region src/cli/utils/json-mode.ts
|
|
77397
77397
|
let context = null;
|
|
@@ -77749,13 +77749,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
|
|
|
77749
77749
|
* uploads source-map artifacts under, so stack frames symbolicate. Honors the
|
|
77750
77750
|
* standard `SENTRY_RELEASE` override.
|
|
77751
77751
|
*/
|
|
77752
|
-
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.8.2-dev.
|
|
77752
|
+
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.8.2-dev.d489fa0`;
|
|
77753
77753
|
/**
|
|
77754
77754
|
* Deployment environment shown in Sentry's environment filter. Defaults to
|
|
77755
77755
|
* `production` for tagged releases and `development` for dev/unbuilt versions,
|
|
77756
77756
|
* overridable via the standard `SENTRY_ENVIRONMENT` env var.
|
|
77757
77757
|
*/
|
|
77758
|
-
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.8.2-dev.
|
|
77758
|
+
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.8.2-dev.d489fa0") ? "development" : "production");
|
|
77759
77759
|
/**
|
|
77760
77760
|
* Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
|
|
77761
77761
|
* (set to `0` to disable tracing) and falls back to
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-doctor",
|
|
3
|
-
"version": "0.8.2-dev.
|
|
3
|
+
"version": "0.8.2-dev.d489fa0",
|
|
4
4
|
"description": "Your agent writes bad React. This catches it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"vscode-uri": "^3.1.0",
|
|
67
67
|
"yaml": "^2.9.0",
|
|
68
68
|
"deslop-js": "0.8.2",
|
|
69
|
-
"oxlint-plugin-react-doctor": "0.8.2-dev.
|
|
69
|
+
"oxlint-plugin-react-doctor": "0.8.2-dev.d489fa0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@types/babel__code-frame": "^7.27.0",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"commander": "^14.0.3",
|
|
76
76
|
"ora": "^9.4.0",
|
|
77
77
|
"@react-doctor/api": "0.8.2",
|
|
78
|
-
"@react-doctor/
|
|
79
|
-
"@react-doctor/
|
|
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"
|