oxlint-plugin-react-doctor 0.9.17-dev.6790398 → 0.9.17-dev.695e46e
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-BE9ryJ2C.js +28 -0
- package/dist/core.d.ts +44 -1
- 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-wQiIw9Gw.d.ts} +10 -2
- package/package.json +1 -1
- package/dist/capability-Dbpf9_qY.js +0 -28
|
@@ -137,6 +137,7 @@ type RuleSeverity = "error" | "warn";
|
|
|
137
137
|
type RuleExecution = "project";
|
|
138
138
|
type RuleFramework = "global" | "nextjs" | "react-native" | "tanstack-start" | "tanstack-query" | "preact";
|
|
139
139
|
interface Rule {
|
|
140
|
+
diffScope?: "line" | "jsx-element" | "function" | "file";
|
|
140
141
|
id: string;
|
|
141
142
|
title?: string;
|
|
142
143
|
severity: RuleSeverity;
|
|
@@ -156,6 +157,13 @@ interface Rule {
|
|
|
156
157
|
recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
157
158
|
create: (context: RuleContext) => RuleVisitors;
|
|
158
159
|
}
|
|
160
|
+
interface RuleRegistryEntry {
|
|
161
|
+
readonly key: string;
|
|
162
|
+
readonly id: string;
|
|
163
|
+
readonly source: "react-doctor";
|
|
164
|
+
readonly originallyExternal: boolean;
|
|
165
|
+
readonly rule: Rule & Required<Pick<Rule, "framework" | "category">>;
|
|
166
|
+
}
|
|
159
167
|
//#endregion
|
|
160
168
|
//#region src/types.d.ts
|
|
161
169
|
type OxlintRuleSeverity = RuleSeverity | "off";
|
|
@@ -329,5 +337,5 @@ declare const REACT_NATIVE_DEPENDENCY_NAMES: ReadonlySet<string>;
|
|
|
329
337
|
declare const REACT_NATIVE_DEPENDENCY_PREFIXES: ReadonlyArray<string>;
|
|
330
338
|
declare const isReactNativeDependencyName: (dependencyName: string) => boolean;
|
|
331
339
|
//#endregion
|
|
332
|
-
export {
|
|
333
|
-
//# sourceMappingURL=react-native-dependency-names-
|
|
340
|
+
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 };
|
|
341
|
+
//# sourceMappingURL=react-native-dependency-names-wQiIw9Gw.d.ts.map
|