react-doctor 0.7.1-dev.d353dad → 0.7.2-dev.08b768b

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/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { FrameworkToken } from "oxlint-plugin-react-doctor";
2
+
1
3
  //#region ../../node_modules/.pnpm/effect@4.0.0-beta.70/node_modules/effect/dist/Types.d.ts
2
4
  /**
3
5
  * Function-type alias encoding covariant variance for a phantom type
@@ -9525,7 +9527,7 @@ interface Diagnostic {
9525
9527
  }
9526
9528
  //#endregion
9527
9529
  //#region src/types/project-info.d.ts
9528
- type Framework = "nextjs" | "vite" | "cra" | "remix" | "gatsby" | "expo" | "react-native" | "tanstack-start" | "preact" | "unknown";
9530
+ type Framework = FrameworkToken;
9529
9531
  interface ProjectInfo {
9530
9532
  rootDirectory: string;
9531
9533
  projectName: string;
@@ -9599,6 +9601,13 @@ interface ProjectInfo {
9599
9601
  * apply, instead of on every React Native project.
9600
9602
  */
9601
9603
  hasReanimated: boolean;
9604
+ /**
9605
+ * The declared `react-native-reanimated` version spec, or `null` when
9606
+ * absent. The Compiler-compatible `.get()` / `.set()` accessors only
9607
+ * exist from reanimated 3.15.0, so the shared-value hint must not
9608
+ * recommend them to projects pinned below that.
9609
+ */
9610
+ reanimatedVersion: string | null;
9602
9611
  /**
9603
9612
  * `true` when the project's `tsconfig.json` `compilerOptions.target` or
9604
9613
  * `compilerOptions.lib` indicates the output environment predates ES2023
@@ -9610,6 +9619,16 @@ interface ProjectInfo {
9610
9619
  * the config is unparseable — the safe default is to keep the rule active.
9611
9620
  */
9612
9621
  isPreES2023Target: boolean;
9622
+ /**
9623
+ * `true` when a Next.js project sets `output: "export"` in `next.config.*`
9624
+ * (static HTML export — no request-time server). Drives the
9625
+ * `nextjs:static-export` capability and excludes the project from
9626
+ * `server-actions`, so rules stop recommending server-only fixes (server
9627
+ * `redirect()`, middleware, Server Actions) that don't exist under a static
9628
+ * export. `false` for non-Next projects, when no config sets it, or when the
9629
+ * config is unparseable — the safe default keeps server-aware advice active.
9630
+ */
9631
+ isStaticExport: boolean;
9613
9632
  sourceFileCount: number;
9614
9633
  }
9615
9634
  //#endregion
@@ -10018,7 +10037,7 @@ declare class AmbiguousProjectError extends Error {
10018
10037
  constructor(directory: string, candidates: readonly string[], options?: ErrorOptions);
10019
10038
  }
10020
10039
  declare const isProjectDiscoveryError: (value: unknown) => value is ProjectNotFoundError | NoReactDependencyError | PackageJsonNotFoundError | NotADirectoryError | AmbiguousProjectError; //#endregion
10021
- //#region src/project-info/utils/is-directory.d.ts
10040
+ //#region src/project-info/fs-utils.d.ts
10022
10041
  //#endregion
10023
10042
  //#region src/errors.d.ts
10024
10043
  declare const OxlintUnavailable_base: Class<OxlintUnavailable, TaggedStruct<"OxlintUnavailable", {