oxlint-plugin-react-doctor 0.8.1-dev.a2f9bf4 → 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 +47 -47
- package/dist/index.js +2629 -787
- package/package.json +1 -1
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
|
|
@@ -2421,29 +2421,6 @@ declare const REACT_DOCTOR_RULES: readonly [{
|
|
|
2421
2421
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
2422
2422
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
2423
2423
|
};
|
|
2424
|
-
}, {
|
|
2425
|
-
readonly key: "react-doctor/jsx-no-target-blank";
|
|
2426
|
-
readonly id: "jsx-no-target-blank";
|
|
2427
|
-
readonly source: "react-doctor";
|
|
2428
|
-
readonly originallyExternal: true;
|
|
2429
|
-
readonly rule: {
|
|
2430
|
-
readonly framework: "global";
|
|
2431
|
-
readonly category: "Security";
|
|
2432
|
-
readonly requires: readonly Capability[];
|
|
2433
|
-
readonly id: string;
|
|
2434
|
-
readonly title?: string;
|
|
2435
|
-
readonly severity: RuleSeverity;
|
|
2436
|
-
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
2437
|
-
readonly tags?: ReadonlyArray<string>;
|
|
2438
|
-
readonly matchByOccurrence?: boolean;
|
|
2439
|
-
readonly defaultEnabled?: boolean;
|
|
2440
|
-
readonly lifecycle?: "retired";
|
|
2441
|
-
readonly scan?: FileScan;
|
|
2442
|
-
readonly committedFilesOnly?: boolean;
|
|
2443
|
-
readonly recommendation?: string;
|
|
2444
|
-
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
2445
|
-
readonly create: (context: RuleContext) => RuleVisitors;
|
|
2446
|
-
};
|
|
2447
2424
|
}, {
|
|
2448
2425
|
readonly key: "react-doctor/jsx-no-undef";
|
|
2449
2426
|
readonly id: "jsx-no-undef";
|
|
@@ -9275,6 +9252,29 @@ declare const REACT_DOCTOR_RULES: readonly [{
|
|
|
9275
9252
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
9276
9253
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
9277
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
|
+
};
|
|
9278
9278
|
}, {
|
|
9279
9279
|
readonly key: "react-doctor/void-dom-elements-no-children";
|
|
9280
9280
|
readonly id: "void-dom-elements-no-children";
|
|
@@ -11733,29 +11733,6 @@ declare const RULES: readonly [{
|
|
|
11733
11733
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
11734
11734
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
11735
11735
|
};
|
|
11736
|
-
}, {
|
|
11737
|
-
readonly key: "react-doctor/jsx-no-target-blank";
|
|
11738
|
-
readonly id: "jsx-no-target-blank";
|
|
11739
|
-
readonly source: "react-doctor";
|
|
11740
|
-
readonly originallyExternal: true;
|
|
11741
|
-
readonly rule: {
|
|
11742
|
-
readonly framework: "global";
|
|
11743
|
-
readonly category: "Security";
|
|
11744
|
-
readonly requires: readonly Capability[];
|
|
11745
|
-
readonly id: string;
|
|
11746
|
-
readonly title?: string;
|
|
11747
|
-
readonly severity: RuleSeverity;
|
|
11748
|
-
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
11749
|
-
readonly tags?: ReadonlyArray<string>;
|
|
11750
|
-
readonly matchByOccurrence?: boolean;
|
|
11751
|
-
readonly defaultEnabled?: boolean;
|
|
11752
|
-
readonly lifecycle?: "retired";
|
|
11753
|
-
readonly scan?: FileScan;
|
|
11754
|
-
readonly committedFilesOnly?: boolean;
|
|
11755
|
-
readonly recommendation?: string;
|
|
11756
|
-
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
11757
|
-
readonly create: (context: RuleContext) => RuleVisitors;
|
|
11758
|
-
};
|
|
11759
11736
|
}, {
|
|
11760
11737
|
readonly key: "react-doctor/jsx-no-undef";
|
|
11761
11738
|
readonly id: "jsx-no-undef";
|
|
@@ -18587,6 +18564,29 @@ declare const RULES: readonly [{
|
|
|
18587
18564
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
18588
18565
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
18589
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
|
+
};
|
|
18590
18590
|
}, {
|
|
18591
18591
|
readonly key: "react-doctor/void-dom-elements-no-children";
|
|
18592
18592
|
readonly id: "void-dom-elements-no-children";
|