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.
@@ -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 { FrameworkToken as A, EsTreeNode as C, Capability as D, ScannedFile as E, CapabilityQuery as O, RuleContext as S, ScanFinding as T, RuleExecution as _, shouldReadSecurityScanContent as a, RuleVisitors 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, FRAMEWORK_TOKENS 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, FileScan as w, BaseRuleContext as x, RuleSeverity as y };
333
- //# sourceMappingURL=react-native-dependency-names-waW0owVD.d.ts.map
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxlint-plugin-react-doctor",
3
- "version": "0.9.17-dev.6790398",
3
+ "version": "0.9.17-dev.695e46e",
4
4
  "description": "React Doctor rules for oxlint.",
5
5
  "keywords": [
6
6
  "accessibility",