oxlint-plugin-react-doctor 0.9.3-dev.0b673cc → 0.9.3-dev.4e4740d
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 +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 +49 -1
- package/dist/index.js +14 -14
- package/package.json +2 -1
- package/dist/capability-CHY7yp3X.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"> {
|
|
@@ -11151,6 +11151,30 @@ declare const REACT_DOCTOR_RULES: readonly [{
|
|
|
11151
11151
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
11152
11152
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
11153
11153
|
};
|
|
11154
|
+
}, {
|
|
11155
|
+
readonly key: "react-doctor/no-unowned-async-error-clear";
|
|
11156
|
+
readonly id: "no-unowned-async-error-clear";
|
|
11157
|
+
readonly source: "react-doctor";
|
|
11158
|
+
readonly originallyExternal: false;
|
|
11159
|
+
readonly rule: {
|
|
11160
|
+
readonly framework: "global";
|
|
11161
|
+
readonly category: "Bugs";
|
|
11162
|
+
readonly requires: readonly Capability[];
|
|
11163
|
+
readonly id: string;
|
|
11164
|
+
readonly title?: string;
|
|
11165
|
+
readonly severity: RuleSeverity;
|
|
11166
|
+
readonly minimumInkVersion?: string;
|
|
11167
|
+
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
11168
|
+
readonly tags?: ReadonlyArray<string>;
|
|
11169
|
+
readonly matchByOccurrence?: boolean;
|
|
11170
|
+
readonly defaultEnabled?: boolean;
|
|
11171
|
+
readonly lifecycle?: "retired";
|
|
11172
|
+
readonly scan?: FileScan;
|
|
11173
|
+
readonly committedFilesOnly?: boolean;
|
|
11174
|
+
readonly recommendation?: string;
|
|
11175
|
+
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
11176
|
+
readonly create: (context: RuleContext) => RuleVisitors;
|
|
11177
|
+
};
|
|
11154
11178
|
}, {
|
|
11155
11179
|
readonly key: "react-doctor/no-unsafe";
|
|
11156
11180
|
readonly id: "no-unsafe";
|
|
@@ -29896,6 +29920,30 @@ declare const RULES: readonly [{
|
|
|
29896
29920
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
29897
29921
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
29898
29922
|
};
|
|
29923
|
+
}, {
|
|
29924
|
+
readonly key: "react-doctor/no-unowned-async-error-clear";
|
|
29925
|
+
readonly id: "no-unowned-async-error-clear";
|
|
29926
|
+
readonly source: "react-doctor";
|
|
29927
|
+
readonly originallyExternal: false;
|
|
29928
|
+
readonly rule: {
|
|
29929
|
+
readonly framework: "global";
|
|
29930
|
+
readonly category: "Bugs";
|
|
29931
|
+
readonly requires: readonly Capability[];
|
|
29932
|
+
readonly id: string;
|
|
29933
|
+
readonly title?: string;
|
|
29934
|
+
readonly severity: RuleSeverity;
|
|
29935
|
+
readonly minimumInkVersion?: string;
|
|
29936
|
+
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
29937
|
+
readonly tags?: ReadonlyArray<string>;
|
|
29938
|
+
readonly matchByOccurrence?: boolean;
|
|
29939
|
+
readonly defaultEnabled?: boolean;
|
|
29940
|
+
readonly lifecycle?: "retired";
|
|
29941
|
+
readonly scan?: FileScan;
|
|
29942
|
+
readonly committedFilesOnly?: boolean;
|
|
29943
|
+
readonly recommendation?: string;
|
|
29944
|
+
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
29945
|
+
readonly create: (context: RuleContext) => RuleVisitors;
|
|
29946
|
+
};
|
|
29899
29947
|
}, {
|
|
29900
29948
|
readonly key: "react-doctor/no-unsafe";
|
|
29901
29949
|
readonly id: "no-unsafe";
|