oxlint-plugin-react-doctor 0.9.11-dev.f1899d2 → 0.9.12-dev.05ef989

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.
@@ -107,6 +107,7 @@ interface ScopeAnalysis {
107
107
  //#region src/plugin/utils/rule-context.d.ts
108
108
  interface BaseRuleSourceCode {
109
109
  readonly ast?: EsTreeNode;
110
+ getText?: (node?: EsTreeNode | null) => string;
110
111
  }
111
112
  interface BaseRuleContext {
112
113
  report: (descriptor: ReportDescriptor) => void;
@@ -133,6 +134,7 @@ interface RuleVisitors {
133
134
  //#endregion
134
135
  //#region src/plugin/utils/rule.d.ts
135
136
  type RuleSeverity = "error" | "warn";
137
+ type RuleExecution = "project";
136
138
  type RuleFramework = "global" | "nextjs" | "react-native" | "tanstack-start" | "tanstack-query" | "preact";
137
139
  interface Rule {
138
140
  id: string;
@@ -147,6 +149,7 @@ interface Rule {
147
149
  matchByOccurrence?: boolean;
148
150
  defaultEnabled?: boolean;
149
151
  lifecycle?: "retired";
152
+ execution?: RuleExecution;
150
153
  scan?: FileScan;
151
154
  committedFilesOnly?: boolean;
152
155
  recommendation?: string;
@@ -326,5 +329,5 @@ declare const REACT_NATIVE_DEPENDENCY_NAMES: ReadonlySet<string>;
326
329
  declare const REACT_NATIVE_DEPENDENCY_PREFIXES: ReadonlyArray<string>;
327
330
  declare const isReactNativeDependencyName: (dependencyName: string) => boolean;
328
331
  //#endregion
329
- export { FileScan as C, CapabilityQuery as D, Capability as E, FRAMEWORK_TOKENS as O, EsTreeNode as S, ScannedFile as T, RuleFramework as _, shouldReadSecurityScanContent as a, BaseRuleContext 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 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, RuleSeverity as v, ScanFinding as w, RuleContext as x, RuleVisitors as y };
330
- //# sourceMappingURL=react-native-dependency-names-DrsRME-d.d.ts.map
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-BhclIti9.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxlint-plugin-react-doctor",
3
- "version": "0.9.11-dev.f1899d2",
3
+ "version": "0.9.12-dev.05ef989",
4
4
  "description": "React Doctor rules for oxlint.",
5
5
  "keywords": [
6
6
  "accessibility",