react-doctor 0.5.6-dev.8057497 → 0.5.6-dev.869f220
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 +630 -343
- package/dist/index.d.ts +19 -0
- package/dist/index.js +271 -179
- package/dist/lsp.js +289 -202
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -9489,6 +9489,15 @@ interface Diagnostic {
|
|
|
9489
9489
|
suppressionHint?: string;
|
|
9490
9490
|
/** Secondary source locations (oxlint's non-primary labels). */
|
|
9491
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;
|
|
9492
9501
|
}
|
|
9493
9502
|
//#endregion
|
|
9494
9503
|
//#region src/types/project-info.d.ts
|
|
@@ -9794,6 +9803,16 @@ interface JsonReportProjectEntry {
|
|
|
9794
9803
|
skippedChecks: string[];
|
|
9795
9804
|
/** Human-readable explanation per skipped check. See `InspectResult.skippedCheckReasons`. */
|
|
9796
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;
|
|
9797
9816
|
elapsedMilliseconds: number;
|
|
9798
9817
|
}
|
|
9799
9818
|
interface JsonReportSummary {
|