oxlint-plugin-react-doctor 0.9.3-dev.3a93a34 → 0.9.3-dev.45afa01
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/capability-CHAO15YT.js +31 -0
- package/dist/core-NYcNjo1f.d.ts +1371 -0
- package/dist/core.d.ts +2 -1045
- package/dist/core.js +2 -2
- package/dist/index.d.ts +145 -1
- package/dist/index.js +14 -14
- package/package.json +1 -1
- package/dist/capability-Cwl9JKjU.js +0 -31
- package/dist/react-native-dependency-names-DrsRME-d.d.ts +0 -330
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as ScanFinding, C as RuleFramework, D as RuleContext, E as BaseRuleContext, F as FrameworkToken, M as Capability, N as CapabilityQuery, O as EsTreeNode, P as FRAMEWORK_TOKENS, S as Rule, T as RuleVisitors, _ as MOTION_LIBRARY_PACKAGES, a as REACT_NATIVE_DEPENDENCY_NAMES, b as OxlintRuleSeverity, c as classifySecurityScanFile, f as CROSS_FILE_DEPENDENCY_COLLECTORS, g as CROSS_FILE_RULE_IDS, h as CrossFileProbeTrace, j as ScannedFile, k as FileScan, l as shouldReadSecurityScanContent, m as collectCrossFileDependencyProbes, o as REACT_NATIVE_DEPENDENCY_PREFIXES, p as UNBOUNDED_CROSS_FILE_RULE_IDS, s as isReactNativeDependencyName, u as resetFilesystemCaches, v as EXTERNAL_RULES, w as RuleSeverity, y as REACT_COMPILER_RULES } from "./core-NYcNjo1f.js";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin/utils/rule-plugin.d.ts
|
|
4
4
|
interface HostRule extends Omit<Rule, "create"> {
|
|
@@ -207,6 +207,30 @@ declare const REACT_DOCTOR_RULES: readonly [{
|
|
|
207
207
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
208
208
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
209
209
|
};
|
|
210
|
+
}, {
|
|
211
|
+
readonly key: "react-doctor/anchor-target-exists";
|
|
212
|
+
readonly id: "anchor-target-exists";
|
|
213
|
+
readonly source: "react-doctor";
|
|
214
|
+
readonly originallyExternal: false;
|
|
215
|
+
readonly rule: {
|
|
216
|
+
readonly framework: "global";
|
|
217
|
+
readonly category: "Accessibility";
|
|
218
|
+
readonly requires: readonly Capability[];
|
|
219
|
+
readonly id: string;
|
|
220
|
+
readonly title?: string;
|
|
221
|
+
readonly severity: RuleSeverity;
|
|
222
|
+
readonly minimumInkVersion?: string;
|
|
223
|
+
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
224
|
+
readonly tags?: ReadonlyArray<string>;
|
|
225
|
+
readonly matchByOccurrence?: boolean;
|
|
226
|
+
readonly defaultEnabled?: boolean;
|
|
227
|
+
readonly lifecycle?: "retired";
|
|
228
|
+
readonly scan?: FileScan;
|
|
229
|
+
readonly committedFilesOnly?: boolean;
|
|
230
|
+
readonly recommendation?: string;
|
|
231
|
+
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
232
|
+
readonly create: (context: RuleContext) => RuleVisitors;
|
|
233
|
+
};
|
|
210
234
|
}, {
|
|
211
235
|
readonly key: "react-doctor/aria-activedescendant-has-tabindex";
|
|
212
236
|
readonly id: "aria-activedescendant-has-tabindex";
|
|
@@ -5487,6 +5511,30 @@ declare const REACT_DOCTOR_RULES: readonly [{
|
|
|
5487
5511
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
5488
5512
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
5489
5513
|
};
|
|
5514
|
+
}, {
|
|
5515
|
+
readonly key: "react-doctor/no-controlled-selection-focus-effect";
|
|
5516
|
+
readonly id: "no-controlled-selection-focus-effect";
|
|
5517
|
+
readonly source: "react-doctor";
|
|
5518
|
+
readonly originallyExternal: false;
|
|
5519
|
+
readonly rule: {
|
|
5520
|
+
readonly framework: "global";
|
|
5521
|
+
readonly category: "Accessibility";
|
|
5522
|
+
readonly requires: readonly Capability[];
|
|
5523
|
+
readonly id: string;
|
|
5524
|
+
readonly title?: string;
|
|
5525
|
+
readonly severity: RuleSeverity;
|
|
5526
|
+
readonly minimumInkVersion?: string;
|
|
5527
|
+
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
5528
|
+
readonly tags?: ReadonlyArray<string>;
|
|
5529
|
+
readonly matchByOccurrence?: boolean;
|
|
5530
|
+
readonly defaultEnabled?: boolean;
|
|
5531
|
+
readonly lifecycle?: "retired";
|
|
5532
|
+
readonly scan?: FileScan;
|
|
5533
|
+
readonly committedFilesOnly?: boolean;
|
|
5534
|
+
readonly recommendation?: string;
|
|
5535
|
+
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
5536
|
+
readonly create: (context: RuleContext) => RuleVisitors;
|
|
5537
|
+
};
|
|
5490
5538
|
}, {
|
|
5491
5539
|
readonly key: "react-doctor/no-cramped-container-padding";
|
|
5492
5540
|
readonly id: "no-cramped-container-padding";
|
|
@@ -8991,6 +9039,30 @@ declare const REACT_DOCTOR_RULES: readonly [{
|
|
|
8991
9039
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
8992
9040
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
8993
9041
|
};
|
|
9042
|
+
}, {
|
|
9043
|
+
readonly key: "react-doctor/no-passive-request-owner-ref";
|
|
9044
|
+
readonly id: "no-passive-request-owner-ref";
|
|
9045
|
+
readonly source: "react-doctor";
|
|
9046
|
+
readonly originallyExternal: false;
|
|
9047
|
+
readonly rule: {
|
|
9048
|
+
readonly framework: "global";
|
|
9049
|
+
readonly category: "Bugs";
|
|
9050
|
+
readonly requires: readonly Capability[];
|
|
9051
|
+
readonly id: string;
|
|
9052
|
+
readonly title?: string;
|
|
9053
|
+
readonly severity: RuleSeverity;
|
|
9054
|
+
readonly minimumInkVersion?: string;
|
|
9055
|
+
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
9056
|
+
readonly tags?: ReadonlyArray<string>;
|
|
9057
|
+
readonly matchByOccurrence?: boolean;
|
|
9058
|
+
readonly defaultEnabled?: boolean;
|
|
9059
|
+
readonly lifecycle?: "retired";
|
|
9060
|
+
readonly scan?: FileScan;
|
|
9061
|
+
readonly committedFilesOnly?: boolean;
|
|
9062
|
+
readonly recommendation?: string;
|
|
9063
|
+
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
9064
|
+
readonly create: (context: RuleContext) => RuleVisitors;
|
|
9065
|
+
};
|
|
8994
9066
|
}, {
|
|
8995
9067
|
readonly key: "react-doctor/no-path-prefix-containment";
|
|
8996
9068
|
readonly id: "no-path-prefix-containment";
|
|
@@ -19024,6 +19096,30 @@ declare const RULES: readonly [{
|
|
|
19024
19096
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
19025
19097
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
19026
19098
|
};
|
|
19099
|
+
}, {
|
|
19100
|
+
readonly key: "react-doctor/anchor-target-exists";
|
|
19101
|
+
readonly id: "anchor-target-exists";
|
|
19102
|
+
readonly source: "react-doctor";
|
|
19103
|
+
readonly originallyExternal: false;
|
|
19104
|
+
readonly rule: {
|
|
19105
|
+
readonly framework: "global";
|
|
19106
|
+
readonly category: "Accessibility";
|
|
19107
|
+
readonly requires: readonly Capability[];
|
|
19108
|
+
readonly id: string;
|
|
19109
|
+
readonly title?: string;
|
|
19110
|
+
readonly severity: RuleSeverity;
|
|
19111
|
+
readonly minimumInkVersion?: string;
|
|
19112
|
+
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
19113
|
+
readonly tags?: ReadonlyArray<string>;
|
|
19114
|
+
readonly matchByOccurrence?: boolean;
|
|
19115
|
+
readonly defaultEnabled?: boolean;
|
|
19116
|
+
readonly lifecycle?: "retired";
|
|
19117
|
+
readonly scan?: FileScan;
|
|
19118
|
+
readonly committedFilesOnly?: boolean;
|
|
19119
|
+
readonly recommendation?: string;
|
|
19120
|
+
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
19121
|
+
readonly create: (context: RuleContext) => RuleVisitors;
|
|
19122
|
+
};
|
|
19027
19123
|
}, {
|
|
19028
19124
|
readonly key: "react-doctor/aria-activedescendant-has-tabindex";
|
|
19029
19125
|
readonly id: "aria-activedescendant-has-tabindex";
|
|
@@ -24304,6 +24400,30 @@ declare const RULES: readonly [{
|
|
|
24304
24400
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
24305
24401
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
24306
24402
|
};
|
|
24403
|
+
}, {
|
|
24404
|
+
readonly key: "react-doctor/no-controlled-selection-focus-effect";
|
|
24405
|
+
readonly id: "no-controlled-selection-focus-effect";
|
|
24406
|
+
readonly source: "react-doctor";
|
|
24407
|
+
readonly originallyExternal: false;
|
|
24408
|
+
readonly rule: {
|
|
24409
|
+
readonly framework: "global";
|
|
24410
|
+
readonly category: "Accessibility";
|
|
24411
|
+
readonly requires: readonly Capability[];
|
|
24412
|
+
readonly id: string;
|
|
24413
|
+
readonly title?: string;
|
|
24414
|
+
readonly severity: RuleSeverity;
|
|
24415
|
+
readonly minimumInkVersion?: string;
|
|
24416
|
+
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
24417
|
+
readonly tags?: ReadonlyArray<string>;
|
|
24418
|
+
readonly matchByOccurrence?: boolean;
|
|
24419
|
+
readonly defaultEnabled?: boolean;
|
|
24420
|
+
readonly lifecycle?: "retired";
|
|
24421
|
+
readonly scan?: FileScan;
|
|
24422
|
+
readonly committedFilesOnly?: boolean;
|
|
24423
|
+
readonly recommendation?: string;
|
|
24424
|
+
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
24425
|
+
readonly create: (context: RuleContext) => RuleVisitors;
|
|
24426
|
+
};
|
|
24307
24427
|
}, {
|
|
24308
24428
|
readonly key: "react-doctor/no-cramped-container-padding";
|
|
24309
24429
|
readonly id: "no-cramped-container-padding";
|
|
@@ -27808,6 +27928,30 @@ declare const RULES: readonly [{
|
|
|
27808
27928
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
27809
27929
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
27810
27930
|
};
|
|
27931
|
+
}, {
|
|
27932
|
+
readonly key: "react-doctor/no-passive-request-owner-ref";
|
|
27933
|
+
readonly id: "no-passive-request-owner-ref";
|
|
27934
|
+
readonly source: "react-doctor";
|
|
27935
|
+
readonly originallyExternal: false;
|
|
27936
|
+
readonly rule: {
|
|
27937
|
+
readonly framework: "global";
|
|
27938
|
+
readonly category: "Bugs";
|
|
27939
|
+
readonly requires: readonly Capability[];
|
|
27940
|
+
readonly id: string;
|
|
27941
|
+
readonly title?: string;
|
|
27942
|
+
readonly severity: RuleSeverity;
|
|
27943
|
+
readonly minimumInkVersion?: string;
|
|
27944
|
+
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
27945
|
+
readonly tags?: ReadonlyArray<string>;
|
|
27946
|
+
readonly matchByOccurrence?: boolean;
|
|
27947
|
+
readonly defaultEnabled?: boolean;
|
|
27948
|
+
readonly lifecycle?: "retired";
|
|
27949
|
+
readonly scan?: FileScan;
|
|
27950
|
+
readonly committedFilesOnly?: boolean;
|
|
27951
|
+
readonly recommendation?: string;
|
|
27952
|
+
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
27953
|
+
readonly create: (context: RuleContext) => RuleVisitors;
|
|
27954
|
+
};
|
|
27811
27955
|
}, {
|
|
27812
27956
|
readonly key: "react-doctor/no-path-prefix-containment";
|
|
27813
27957
|
readonly id: "no-path-prefix-containment";
|