oxlint-plugin-react-doctor 0.9.17-dev.fe5ed09 → 0.9.18-dev.813bd63
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-COsjgFAJ.js +28 -0
- package/dist/core.d.ts +66 -2
- package/dist/core.js +2 -2
- package/dist/index.d.ts +5 -67955
- package/dist/index.js +12 -12
- package/dist/{react-native-dependency-names-waW0owVD.d.ts → react-native-dependency-names-HniFQ29a.d.ts} +11 -2
- package/package.json +1 -1
- package/dist/capability-Dbpf9_qY.js +0 -28
|
@@ -35,6 +35,7 @@ type EsTreeNode = WithLooseParent<TSESTree.Node>;
|
|
|
35
35
|
//#region src/plugin/utils/report-descriptor.d.ts
|
|
36
36
|
interface ReportDescriptor {
|
|
37
37
|
node: EsTreeNode;
|
|
38
|
+
contextNodes?: ReadonlyArray<EsTreeNode>;
|
|
38
39
|
message: string;
|
|
39
40
|
}
|
|
40
41
|
//#endregion
|
|
@@ -137,6 +138,7 @@ type RuleSeverity = "error" | "warn";
|
|
|
137
138
|
type RuleExecution = "project";
|
|
138
139
|
type RuleFramework = "global" | "nextjs" | "react-native" | "tanstack-start" | "tanstack-query" | "preact";
|
|
139
140
|
interface Rule {
|
|
141
|
+
diffScope?: "line" | "jsx-element" | "function" | "file";
|
|
140
142
|
id: string;
|
|
141
143
|
title?: string;
|
|
142
144
|
severity: RuleSeverity;
|
|
@@ -156,6 +158,13 @@ interface Rule {
|
|
|
156
158
|
recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
157
159
|
create: (context: RuleContext) => RuleVisitors;
|
|
158
160
|
}
|
|
161
|
+
interface RuleRegistryEntry {
|
|
162
|
+
readonly key: string;
|
|
163
|
+
readonly id: string;
|
|
164
|
+
readonly source: "react-doctor";
|
|
165
|
+
readonly originallyExternal: boolean;
|
|
166
|
+
readonly rule: Rule & Required<Pick<Rule, "framework" | "category">>;
|
|
167
|
+
}
|
|
159
168
|
//#endregion
|
|
160
169
|
//#region src/types.d.ts
|
|
161
170
|
type OxlintRuleSeverity = RuleSeverity | "off";
|
|
@@ -329,5 +338,5 @@ declare const REACT_NATIVE_DEPENDENCY_NAMES: ReadonlySet<string>;
|
|
|
329
338
|
declare const REACT_NATIVE_DEPENDENCY_PREFIXES: ReadonlyArray<string>;
|
|
330
339
|
declare const isReactNativeDependencyName: (dependencyName: string) => boolean;
|
|
331
340
|
//#endregion
|
|
332
|
-
export {
|
|
333
|
-
//# sourceMappingURL=react-native-dependency-names-
|
|
341
|
+
export { FRAMEWORK_TOKENS as A, RuleContext as C, ScannedFile as D, ScanFinding as E, Capability as O, BaseRuleContext as S, FileScan as T, RuleExecution as _, shouldReadSecurityScanContent as a, RuleSeverity as b, UNBOUNDED_CROSS_FILE_RULE_IDS as c, CROSS_FILE_RULE_IDS as d, MOTION_LIBRARY_PACKAGES as f, Rule as g, OxlintRuleSeverity as h, classifySecurityScanFile as i, FrameworkToken as j, CapabilityQuery as k, collectCrossFileDependencyProbes as l, REACT_COMPILER_RULES as m, REACT_NATIVE_DEPENDENCY_PREFIXES as n, resetFilesystemCaches as o, EXTERNAL_RULES as p, isReactNativeDependencyName as r, CROSS_FILE_DEPENDENCY_COLLECTORS as s, REACT_NATIVE_DEPENDENCY_NAMES as t, CrossFileProbeTrace as u, RuleFramework as v, EsTreeNode as w, RuleVisitors as x, RuleRegistryEntry as y };
|
|
342
|
+
//# sourceMappingURL=react-native-dependency-names-HniFQ29a.d.ts.map
|