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.
- package/dist/capability-Hg-W-pOZ.js +31 -0
- package/dist/core.d.ts +47 -2
- package/dist/core.js +2 -2
- package/dist/index.d.ts +25777 -875
- package/dist/index.js +12 -12
- package/dist/{react-native-dependency-names-DrsRME-d.d.ts → react-native-dependency-names-BhclIti9.d.ts} +5 -2
- package/package.json +1 -1
- package/dist/capability-CEeMS5bV.js +0 -31
|
@@ -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 {
|
|
330
|
-
//# sourceMappingURL=react-native-dependency-names-
|
|
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
|