oxlint-plugin-react-doctor 0.9.17-dev.fe5ed09 → 0.9.18-dev.84ad0c8

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.
@@ -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 { 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
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxlint-plugin-react-doctor",
3
- "version": "0.9.17-dev.fe5ed09",
3
+ "version": "0.9.18-dev.84ad0c8",
4
4
  "description": "React Doctor rules for oxlint.",
5
5
  "keywords": [
6
6
  "accessibility",