react-doctor 0.5.6 → 0.5.7-dev.96b5bb4
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 +765 -408
- package/dist/index.d.ts +23 -3
- package/dist/index.js +315 -192
- package/dist/lsp.js +334 -216
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -9280,9 +9280,10 @@ interface ReactDoctorConfig {
|
|
|
9280
9280
|
* list, user-provided names are treated as distinctive and never
|
|
9281
9281
|
* subject to receiver-object disambiguation.
|
|
9282
9282
|
*
|
|
9283
|
-
*
|
|
9284
|
-
*
|
|
9285
|
-
*
|
|
9283
|
+
* Common guard conventions are already recognized automatically
|
|
9284
|
+
* (`requireAdmin`, `ensureSignedIn`, `getCurrentUser`, `hasRole`, …),
|
|
9285
|
+
* so this is only needed for domain-specific guards whose names carry
|
|
9286
|
+
* no auth noun — e.g. a project-local `requireWorkspaceMember`.
|
|
9286
9287
|
*/
|
|
9287
9288
|
serverAuthFunctionNames?: string[];
|
|
9288
9289
|
/**
|
|
@@ -9488,6 +9489,15 @@ interface Diagnostic {
|
|
|
9488
9489
|
suppressionHint?: string;
|
|
9489
9490
|
/** Secondary source locations (oxlint's non-primary labels). */
|
|
9490
9491
|
relatedLocations?: DiagnosticRelatedLocation[];
|
|
9492
|
+
/**
|
|
9493
|
+
* Stable id shared by every finding that a single fix resolves together —
|
|
9494
|
+
* e.g. four `useEffect`s that reset state on one prop change all clear with
|
|
9495
|
+
* one `key` prop. Set only when ≥2 findings share a root cause; absent for
|
|
9496
|
+
* standalone findings. A consumer that turns findings into work items should
|
|
9497
|
+
* group by it so one fix reads as one task, not N. Presentation-only and
|
|
9498
|
+
* score-neutral — the score never reads it.
|
|
9499
|
+
*/
|
|
9500
|
+
fixGroupId?: string;
|
|
9491
9501
|
}
|
|
9492
9502
|
//#endregion
|
|
9493
9503
|
//#region src/types/project-info.d.ts
|
|
@@ -9793,6 +9803,16 @@ interface JsonReportProjectEntry {
|
|
|
9793
9803
|
skippedChecks: string[];
|
|
9794
9804
|
/** Human-readable explanation per skipped check. See `InspectResult.skippedCheckReasons`. */
|
|
9795
9805
|
skippedCheckReasons?: Record<string, string>;
|
|
9806
|
+
/**
|
|
9807
|
+
* Number of source files this scan's linter examined. In diff / changed
|
|
9808
|
+
* mode it's the count of changed React-eligible files (`.tsx`/`.jsx` plus
|
|
9809
|
+
* framework entry files); in a full scan it's the whole source tree. `0`
|
|
9810
|
+
* in a diff scan means the changed files held nothing React Doctor lints —
|
|
9811
|
+
* the GitHub Action reads that as "nothing to report" (skips the PR comment;
|
|
9812
|
+
* the commit status says "skipped"). Optional: absent on reports from
|
|
9813
|
+
* constructors that don't track it (e.g. `toJsonReport`).
|
|
9814
|
+
*/
|
|
9815
|
+
scannedFileCount?: number;
|
|
9796
9816
|
elapsedMilliseconds: number;
|
|
9797
9817
|
}
|
|
9798
9818
|
interface JsonReportSummary {
|