react-doctor 0.9.1 → 0.9.2-dev.075865f
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 +3 -1
- package/dist/cli.js +2170 -344
- package/dist/index.d.ts +11 -5
- package/dist/index.js +1844 -241
- package/dist/lsp.js +1833 -238
- package/dist/{run-scan-app-DZ5jGWFf.js → run-scan-app-DHRvqfkX.js} +288 -216
- package/package.json +9 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FrameworkToken } from "oxlint-plugin-react-doctor";
|
|
1
|
+
import { FrameworkToken } from "oxlint-plugin-react-doctor/core";
|
|
2
2
|
|
|
3
3
|
//#region ../../node_modules/.pnpm/effect@4.0.0-beta.70/node_modules/effect/dist/Types.d.ts
|
|
4
4
|
/**
|
|
@@ -9333,11 +9333,17 @@ interface ReactDoctorConfig {
|
|
|
9333
9333
|
* Entries resolve exactly like `--project` values: workspace package
|
|
9334
9334
|
* names (or directory basenames) first, then directory paths relative to
|
|
9335
9335
|
* the scanned root. `"*"` selects every discovered workspace project.
|
|
9336
|
-
* Invalid entries fail the run with the same error as the flag
|
|
9336
|
+
* Invalid entries fail the run with the same error as the flag — except
|
|
9337
|
+
* under `--staged`, where they warn and fall back to a single scan at the
|
|
9338
|
+
* root, because `--staged` runs in a commit hook and a stale entry there
|
|
9339
|
+
* would block every commit.
|
|
9337
9340
|
*
|
|
9338
9341
|
* Precedence: an explicit `--project` flag overrides this list. Only the
|
|
9339
9342
|
* config at the invocation root is consulted — `projects` inside a
|
|
9340
|
-
* module's own config is ignored (modules can't redirect the scan).
|
|
9343
|
+
* module's own config is ignored (modules can't redirect the scan). Under
|
|
9344
|
+
* `--staged` this list applies only when you invoke react-doctor from the
|
|
9345
|
+
* directory that declared it, so a per-package or positional run does not
|
|
9346
|
+
* resolve an ancestor's entries against the package.
|
|
9341
9347
|
*/
|
|
9342
9348
|
projects?: string[];
|
|
9343
9349
|
textComponents?: string[];
|
|
@@ -9706,7 +9712,7 @@ interface DiagnoseOptions {
|
|
|
9706
9712
|
/** See `ReactDoctorConfig.deadCode`. Ignored in diff mode. */
|
|
9707
9713
|
deadCode?: boolean;
|
|
9708
9714
|
verbose?: boolean;
|
|
9709
|
-
/** Restrict linting to
|
|
9715
|
+
/** Restrict linting to supported JS/TS files and inline scripts in HTML files. */
|
|
9710
9716
|
includePaths?: string[];
|
|
9711
9717
|
/**
|
|
9712
9718
|
* Per-call override for `ReactDoctorConfig.respectInlineDisables`.
|
|
@@ -9969,7 +9975,7 @@ interface JsonReportProjectEntry {
|
|
|
9969
9975
|
skippedCheckReasons?: Record<string, string>;
|
|
9970
9976
|
/**
|
|
9971
9977
|
* Number of source files this scan's linter examined. In diff / changed
|
|
9972
|
-
* mode it's the count of changed supported JS/TS source files; in a full
|
|
9978
|
+
* mode it's the count of changed supported JS/TS and HTML source files; in a full
|
|
9973
9979
|
* scan it's the whole source tree. `0` in a diff scan means the changed
|
|
9974
9980
|
* files held nothing React Doctor lints —
|
|
9975
9981
|
* the GitHub Action reads that as "nothing to report" (skips the PR comment;
|