react-doctor 0.9.23-dev.dfffab3 → 0.9.23-dev.fc7bdef

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.
Files changed (35) hide show
  1. package/dist/{build-section-divider-BFxWf70B.js → build-section-divider-DlIev8vn.js} +4 -4
  2. package/dist/{ci-CLtdQCIE.js → ci-Duk2ilCo.js} +12 -12
  3. package/dist/cli.js +23 -23
  4. package/dist/{design-BMqPn207.js → design-D76XnzuP.js} +4 -4
  5. package/dist/{exit-gracefully-Bhyw-8gk.js → exit-gracefully-BsHVT6zY.js} +6 -6
  6. package/dist/{handle-error-BJ_4E2kS.js → handle-error-CQDJHuyK.js} +5 -5
  7. package/dist/index.d.ts +16 -1
  8. package/dist/index.js +34 -5
  9. package/dist/{inspect-BuLr42QI.js → inspect-Clg-7fyR.js} +15 -15
  10. package/dist/{install-DsuiRD1t.js → install-FI8aAPmR.js} +9 -9
  11. package/dist/{install-doctor-script-DJ6UbhZJ.js → install-doctor-script-Dwr5Yze1.js} +4 -4
  12. package/dist/{install-github-workflow-BNRbJHjd.js → install-github-workflow-BCEX-gYr.js} +5 -5
  13. package/dist/{install-react-doctor-BcsOSw5y.js → install-react-doctor-fm4cWb8a.js} +8 -8
  14. package/dist/{jsx-runtime-BDdabT1T.js → jsx-runtime-g2lOxLTN.js} +5 -5
  15. package/dist/{print-branded-header-BFh1P9t6.js → print-branded-header-CTDJnl2Y.js} +4 -4
  16. package/dist/{prompt-runtime-scan-url-CRx8qrV0.js → prompt-runtime-scan-url-Ba2Czl6a.js} +5 -5
  17. package/dist/{read-object-file-D3pRnLyV.js → read-object-file-BGPLus19.js} +4 -4
  18. package/dist/{record-metric-CWxS2npr.js → record-metric-D68nGAXH.js} +36 -7
  19. package/dist/{report-error-DA8uMulb.js → report-error-DCvym8ml.js} +5 -5
  20. package/dist/{report-workflow-result-D6NNwRMm.js → report-workflow-result-BOF0YraW.js} +5 -5
  21. package/dist/{resolve-scan-exit-code-DE6AIQwU.js → resolve-scan-exit-code-CRJqvX6-.js} +12 -11
  22. package/dist/{resolve-scope-B3xmSQ0a.js → resolve-scope-E0WbCDmE.js} +6 -6
  23. package/dist/{rules-CHxjoZwR.js → rules-vR2o18F3.js} +6 -6
  24. package/dist/{run-scan-app-BuI_XZcx.js → run-scan-app-C6rEjl8-.js} +44 -15
  25. package/dist/{runtime-scan-0pSZm3M0.js → runtime-scan-COGVweEY.js} +9 -9
  26. package/dist/{sanitize-runtime-url-BCw_Ixks.js → sanitize-runtime-url-Dt3ZKoWh.js} +4 -4
  27. package/dist/{scan-Be7a-iK7.js → scan-CZAoXL79.js} +9 -9
  28. package/dist/{should-skip-prompts-CDudIC40.js → should-skip-prompts-CiUlF-3h.js} +4 -4
  29. package/dist/{should-use-tui-HuQLii4U.js → should-use-tui-DN5e7rzp.js} +4 -4
  30. package/dist/skills/react-doctor/references/explain.md +21 -0
  31. package/dist/{telemetry-runtime-De9QafWu.js → telemetry-runtime-BEJI8823.js} +6 -6
  32. package/dist/{version-uDDHk7KW.js → version-CYGQk1JK.js} +4 -4
  33. package/dist/{why-Dww_fJtq.js → why-DyjoydY2.js} +4 -4
  34. package/dist/{with-run-span-CRYkeESN.js → with-run-span-gTZryRmW.js} +5 -5
  35. package/package.json +4 -4
@@ -73,6 +73,27 @@ export default {
73
73
  };
74
74
  ```
75
75
 
76
+ ## Fast Refresh exports
77
+
78
+ Configure known project wrappers and intentional non-component exports without
79
+ turning off `react-doctor/only-export-components`:
80
+
81
+ ```json
82
+ {
83
+ "onlyExportComponents": {
84
+ "customHOCs": ["withErrorBoundary", "withScreenBoundary"],
85
+ "allowExportNames": ["meta"],
86
+ "allowConstantExport": true,
87
+ "checkJS": false
88
+ }
89
+ }
90
+ ```
91
+
92
+ `customHOCs` names component wrappers; `allowExportNames` permits specific named
93
+ exports. `allowConstantExport` permits primitive constant exports, and `checkJS`
94
+ enables checking `.js` files as well as JSX/TSX. Omitted options preserve the
95
+ rule's existing defaults. These settings do not enable a disabled rule.
96
+
76
97
  ## Educating the user
77
98
 
78
99
  When explaining a rule, lead with the "Why it matters" guidance from `rules explain` and, when they want depth, the per-rule recipe at `https://www.react.doctor/prompts/rules/<plugin>/<rule>.md`. Only after they understand it should you offer to disable it — many "bad" rules are catching real issues.
@@ -1,7 +1,7 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e9a0d126-8b05-527d-b8d9-849db4b1a807")}catch(e){}}();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="db55dbd2-a524-53c0-8bc2-0f705c081bb9")}catch(e){}}();
3
3
  import { S as SENTRY_FLUSH_TIMEOUT_MS } from "./constants-BmD_c3Yq.js";
4
- import { An as buildWithScope, En as runSync, Fn as makeUnsafe, Ft as isProjectDiscoveryError, It as isReactDoctorError, J as anonymizeInPlace, Ln as void_, Pn as close, Tn as runPromise, Vn as messageFromUnknown, Wn as isErrnoException, Y as anonymizeText, _ as VERSION, a as isEnvFlagEnabled, en as scrubSensitivePaths, gn as make, i as isTelemetryEnabled, o as buildSentryScope, y as CliInputError, zt as layerObservability } from "./record-metric-CWxS2npr.js";
4
+ import { An as buildWithScope, En as runSync, Fn as makeUnsafe, Ft as isProjectDiscoveryError, It as isReactDoctorError, J as anonymizeInPlace, Ln as void_, Pn as close, Tn as runPromise, Vn as messageFromUnknown, Wn as isErrnoException, Y as anonymizeText, _ as VERSION, a as isEnvFlagEnabled, en as scrubSensitivePaths, gn as make, i as isTelemetryEnabled, o as buildSentryScope, y as CliInputError, zt as layerObservability } from "./record-metric-D68nGAXH.js";
5
5
  //#region src/cli/utils/is-environment-error.ts
6
6
  const ENVIRONMENT_ERROR_CODES = new Set([
7
7
  "EACCES",
@@ -217,13 +217,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
217
217
  * uploads source-map artifacts under, so stack frames symbolicate. Honors the
218
218
  * standard `SENTRY_RELEASE` override.
219
219
  */
220
- const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.23-dev.dfffab3`;
220
+ const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.23-dev.fc7bdef`;
221
221
  /**
222
222
  * Deployment environment shown in Sentry's environment filter. Defaults to
223
223
  * `production` for tagged releases and `development` for dev/unbuilt versions,
224
224
  * overridable via the standard `SENTRY_ENVIRONMENT` env var.
225
225
  */
226
- const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.23-dev.dfffab3") ? "development" : "production");
226
+ const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.23-dev.fc7bdef") ? "development" : "production");
227
227
  //#endregion
228
228
  //#region src/instrument.ts
229
229
  let sentryPromise = null;
@@ -402,5 +402,5 @@ const shutdownTelemetry = async () => {
402
402
  //#endregion
403
403
  export { initializeSentry as a, isNpmCacheCorruptionError as c, getSentry as i, formatEnvironmentError as l, shutdownTelemetry as n, isExpectedUserError as o, flushSentry as r, formatNpmCacheCorruptionError as s, getTelemetryContext as t, isEnvironmentError as u };
404
404
 
405
- //# sourceMappingURL=telemetry-runtime-De9QafWu.js.map
406
- //# debugId=e9a0d126-8b05-527d-b8d9-849db4b1a807
405
+ //# sourceMappingURL=telemetry-runtime-BEJI8823.js.map
406
+ //# debugId=db55dbd2-a524-53c0-8bc2-0f705c081bb9
@@ -1,7 +1,7 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="cb6246fe-7f68-54ed-8bac-40bb48aaa765")}catch(e){}}();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="812f87f6-41fa-5441-b08a-91b668a87e7c")}catch(e){}}();
3
3
  import { u as METRIC } from "./constants-BmD_c3Yq.js";
4
- import { _ as VERSION, t as recordCount } from "./record-metric-CWxS2npr.js";
4
+ import { _ as VERSION, t as recordCount } from "./record-metric-D68nGAXH.js";
5
5
  //#region src/cli/commands/version.ts
6
6
  /**
7
7
  * oclif-style version line. 12-factor CLI Apps (#3, "What version am I
@@ -18,5 +18,5 @@ const versionAction = () => {
18
18
  //#endregion
19
19
  export { versionAction };
20
20
 
21
- //# sourceMappingURL=version-uDDHk7KW.js.map
22
- //# debugId=cb6246fe-7f68-54ed-8bac-40bb48aaa765
21
+ //# sourceMappingURL=version-CYGQk1JK.js.map
22
+ //# debugId=812f87f6-41fa-5441-b08a-91b668a87e7c
@@ -1,6 +1,6 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2728a154-7d15-5990-99b0-136bcba3ea45")}catch(e){}}();
3
- import { t as inspectAction } from "./inspect-BuLr42QI.js";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dd839bce-b803-5525-9c79-4eee0418ddf1")}catch(e){}}();
3
+ import { t as inspectAction } from "./inspect-Clg-7fyR.js";
4
4
  //#region src/cli/commands/why.ts
5
5
  /**
6
6
  * `why <file:line>` — explains why a rule fired (or why a suppression didn't
@@ -17,5 +17,5 @@ const whyAction = async (location, options) => {
17
17
  //#endregion
18
18
  export { whyAction };
19
19
 
20
- //# sourceMappingURL=why-Dww_fJtq.js.map
21
- //# debugId=2728a154-7d15-5990-99b0-136bcba3ea45
20
+ //# sourceMappingURL=why-DyjoydY2.js.map
21
+ //# debugId=dd839bce-b803-5525-9c79-4eee0418ddf1
@@ -1,8 +1,8 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="926df797-fab3-5435-bc03-a6d6fab93612")}catch(e){}}();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9660a19c-d701-59e8-89ac-cc15d7735c5d")}catch(e){}}();
3
3
  import { p as NANOSECONDS_PER_MILLISECOND } from "./constants-BmD_c3Yq.js";
4
- import { Cn as provideContext, En as runSync, In as fail, Ln as void_, c as setSentryProjectInfo, o as buildSentryScope, r as toSpanAttributes, s as buildSentryProjectContext, vn as makeSpan } from "./record-metric-CWxS2npr.js";
5
- import { t as getTelemetryContext } from "./telemetry-runtime-De9QafWu.js";
4
+ import { Cn as provideContext, En as runSync, In as fail, Ln as void_, c as setSentryProjectInfo, o as buildSentryScope, r as toSpanAttributes, s as buildSentryProjectContext, vn as makeSpan } from "./record-metric-D68nGAXH.js";
5
+ import { t as getTelemetryContext } from "./telemetry-runtime-BEJI8823.js";
6
6
  import { i as setActiveRunTrace, r as recordRunTraceId } from "./active-run-trace-Dewycxda.js";
7
7
  //#region src/cli/utils/with-run-span.ts
8
8
  /**
@@ -107,5 +107,5 @@ const recordSentryProjectContext = (projectInfo, rootSpan, options = {}) => {
107
107
  //#endregion
108
108
  export { resetSentryRunState as n, withRunSpan as r, recordSentryProjectContext as t };
109
109
 
110
- //# sourceMappingURL=with-run-span-CRYkeESN.js.map
111
- //# debugId=926df797-fab3-5435-bc03-a6d6fab93612
110
+ //# sourceMappingURL=with-run-span-gTZryRmW.js.map
111
+ //# debugId=9660a19c-d701-59e8-89ac-cc15d7735c5d
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-doctor",
3
- "version": "0.9.23-dev.dfffab3",
3
+ "version": "0.9.23-dev.fc7bdef",
4
4
  "description": "Your agent writes bad React. This catches it",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -70,7 +70,7 @@
70
70
  "typescript": ">=5.0.4 <6",
71
71
  "yaml": "^2.9.0",
72
72
  "yoga-layout": "~3.2.1",
73
- "oxlint-plugin-react-doctor": "0.9.23-dev.dfffab3"
73
+ "oxlint-plugin-react-doctor": "0.9.23-dev.fc7bdef"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@types/babel__code-frame": "^7.27.0",
@@ -83,8 +83,8 @@
83
83
  "ora": "^9.4.0",
84
84
  "react": "19.2.5",
85
85
  "react-devtools-core": "^7.0.1",
86
- "@react-doctor/core": "0.9.23",
87
- "@react-doctor/api": "0.9.23"
86
+ "@react-doctor/api": "0.9.23",
87
+ "@react-doctor/core": "0.9.23"
88
88
  },
89
89
  "engines": {
90
90
  "node": "^20.19.0 || >=22.13.0"