oxlint-plugin-react-doctor 0.8.1-dev.90e794f → 0.8.1-dev.a4eaedd

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
@@ -100,7 +100,7 @@ interface RuleContext extends Omit<BaseRuleContext, "getFilename"> {
100
100
  //#region src/plugin/utils/capability.d.ts
101
101
  declare const FRAMEWORK_TOKENS: readonly ["nextjs", "vite", "cra", "remix", "gatsby", "expo", "react-native", "tanstack-start", "preact", "unknown"];
102
102
  type FrameworkToken = (typeof FRAMEWORK_TOKENS)[number];
103
- type Capability = FrameworkToken | "react" | "pure-preact" | "react-native" | "server-actions" | "ssr" | "client-only" | "nextjs:static-export" | "nextjs:15" | "tailwind" | "tailwind:3.4" | "zod" | "zod:4" | "typescript" | "react-compiler" | "tanstack-query" | "pre-es2023" | `react:${number}` | `preact:${number}`;
103
+ type Capability = FrameworkToken | "react" | "pure-preact" | "react-native" | "server-actions" | "ssr" | "client-only" | "nextjs:static-export" | "nextjs:15" | "tailwind" | "tailwind:3.4" | "zod" | "zod:4" | "typescript" | "react-compiler" | "tanstack-query" | "valtio" | "pre-es2023" | `react:${number}` | `preact:${number}` | `valtio:${number}`;
104
104
  type CapabilityQuery = (capability: Capability) => boolean;
105
105
  //#endregion
106
106
  //#region src/plugin/utils/file-scan.d.ts
@@ -9252,6 +9252,29 @@ declare const REACT_DOCTOR_RULES: readonly [{
9252
9252
  readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
9253
9253
  readonly create: (context: RuleContext) => RuleVisitors;
9254
9254
  };
9255
+ }, {
9256
+ readonly key: "react-doctor/valtio-no-proxy-read-in-render";
9257
+ readonly id: "valtio-no-proxy-read-in-render";
9258
+ readonly source: "react-doctor";
9259
+ readonly originallyExternal: false;
9260
+ readonly rule: {
9261
+ readonly framework: "global";
9262
+ readonly category: "Bugs";
9263
+ readonly requires: readonly Capability[];
9264
+ readonly id: string;
9265
+ readonly title?: string;
9266
+ readonly severity: RuleSeverity;
9267
+ readonly disabledWhen?: ReadonlyArray<Capability>;
9268
+ readonly tags?: ReadonlyArray<string>;
9269
+ readonly matchByOccurrence?: boolean;
9270
+ readonly defaultEnabled?: boolean;
9271
+ readonly lifecycle?: "retired";
9272
+ readonly scan?: FileScan;
9273
+ readonly committedFilesOnly?: boolean;
9274
+ readonly recommendation?: string;
9275
+ readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
9276
+ readonly create: (context: RuleContext) => RuleVisitors;
9277
+ };
9255
9278
  }, {
9256
9279
  readonly key: "react-doctor/void-dom-elements-no-children";
9257
9280
  readonly id: "void-dom-elements-no-children";
@@ -18541,6 +18564,29 @@ declare const RULES: readonly [{
18541
18564
  readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
18542
18565
  readonly create: (context: RuleContext) => RuleVisitors;
18543
18566
  };
18567
+ }, {
18568
+ readonly key: "react-doctor/valtio-no-proxy-read-in-render";
18569
+ readonly id: "valtio-no-proxy-read-in-render";
18570
+ readonly source: "react-doctor";
18571
+ readonly originallyExternal: false;
18572
+ readonly rule: {
18573
+ readonly framework: "global";
18574
+ readonly category: "Bugs";
18575
+ readonly requires: readonly Capability[];
18576
+ readonly id: string;
18577
+ readonly title?: string;
18578
+ readonly severity: RuleSeverity;
18579
+ readonly disabledWhen?: ReadonlyArray<Capability>;
18580
+ readonly tags?: ReadonlyArray<string>;
18581
+ readonly matchByOccurrence?: boolean;
18582
+ readonly defaultEnabled?: boolean;
18583
+ readonly lifecycle?: "retired";
18584
+ readonly scan?: FileScan;
18585
+ readonly committedFilesOnly?: boolean;
18586
+ readonly recommendation?: string;
18587
+ readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
18588
+ readonly create: (context: RuleContext) => RuleVisitors;
18589
+ };
18544
18590
  }, {
18545
18591
  readonly key: "react-doctor/void-dom-elements-no-children";
18546
18592
  readonly id: "void-dom-elements-no-children";