oxlint-plugin-react-doctor 0.9.3-dev.3a93a34 → 0.9.3-dev.44922d6
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-Cwl9JKjU.js → capability-CF1M-Tj7.js} +6 -6
- 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 +49 -1
- package/dist/index.js +14 -14
- package/package.json +1 -1
- 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";
|
|
@@ -19024,6 +19048,30 @@ declare const RULES: readonly [{
|
|
|
19024
19048
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
19025
19049
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
19026
19050
|
};
|
|
19051
|
+
}, {
|
|
19052
|
+
readonly key: "react-doctor/anchor-target-exists";
|
|
19053
|
+
readonly id: "anchor-target-exists";
|
|
19054
|
+
readonly source: "react-doctor";
|
|
19055
|
+
readonly originallyExternal: false;
|
|
19056
|
+
readonly rule: {
|
|
19057
|
+
readonly framework: "global";
|
|
19058
|
+
readonly category: "Accessibility";
|
|
19059
|
+
readonly requires: readonly Capability[];
|
|
19060
|
+
readonly id: string;
|
|
19061
|
+
readonly title?: string;
|
|
19062
|
+
readonly severity: RuleSeverity;
|
|
19063
|
+
readonly minimumInkVersion?: string;
|
|
19064
|
+
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
19065
|
+
readonly tags?: ReadonlyArray<string>;
|
|
19066
|
+
readonly matchByOccurrence?: boolean;
|
|
19067
|
+
readonly defaultEnabled?: boolean;
|
|
19068
|
+
readonly lifecycle?: "retired";
|
|
19069
|
+
readonly scan?: FileScan;
|
|
19070
|
+
readonly committedFilesOnly?: boolean;
|
|
19071
|
+
readonly recommendation?: string;
|
|
19072
|
+
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
19073
|
+
readonly create: (context: RuleContext) => RuleVisitors;
|
|
19074
|
+
};
|
|
19027
19075
|
}, {
|
|
19028
19076
|
readonly key: "react-doctor/aria-activedescendant-has-tabindex";
|
|
19029
19077
|
readonly id: "aria-activedescendant-has-tabindex";
|