@oxlint-config-inspector/core 1.0.0-beta.1 → 1.0.0-beta.2
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/index.d.mts +18 -4
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2458 -74
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -17,6 +17,17 @@ type PluginLoadError = {
|
|
|
17
17
|
specifier: string;
|
|
18
18
|
};
|
|
19
19
|
//#endregion
|
|
20
|
+
//#region src/types.d.ts
|
|
21
|
+
type RuleInfo = {
|
|
22
|
+
scope: string;
|
|
23
|
+
value: string;
|
|
24
|
+
category: string;
|
|
25
|
+
type_aware: boolean;
|
|
26
|
+
fix: string;
|
|
27
|
+
default: boolean;
|
|
28
|
+
docs_url: string;
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
20
31
|
//#region src/inspect.d.ts
|
|
21
32
|
/**
|
|
22
33
|
* Origin of a plugin entry discovered during config inspection.
|
|
@@ -90,7 +101,8 @@ type InspectedRule = {
|
|
|
90
101
|
/** Rule IDs that resolve to this rule, including compatibility aliases. */aliases: string[]; /** Oxlint category for builtin rules, when available. */
|
|
91
102
|
category?: string; /** Root-level config applied to this rule, when configured. */
|
|
92
103
|
configured?: InspectedRuleConfig; /** Severity implied by the rule catalog before user configuration is applied. */
|
|
93
|
-
defaultSeverity: RuleSeverity; /**
|
|
104
|
+
defaultSeverity: RuleSeverity; /** Documented default option values, when available. */
|
|
105
|
+
defaultOptions?: Record<string, unknown>; /** Human-readable rule description from ESLint-compatible rule metadata, when available. */
|
|
94
106
|
description?: string; /** Whether the rule is deprecated. */
|
|
95
107
|
deprecated: boolean; /** Documentation URL for builtin rules, when available. */
|
|
96
108
|
docsUrl?: string; /** Whether the rule can apply an automatic fix. */
|
|
@@ -103,8 +115,7 @@ type InspectedRule = {
|
|
|
103
115
|
pluginName?: string; /** Whether the rule belongs to the recommended/default-enabled rule set. */
|
|
104
116
|
recommended: boolean; /** Replacement rule IDs or names declared by deprecation metadata. */
|
|
105
117
|
replacedBy: string[]; /** Canonical rule ID used by the inspector. */
|
|
106
|
-
ruleId: string; /**
|
|
107
|
-
searchText: string; /** Unique normalized severities present on this rule, ordered as error, warn, then off. */
|
|
118
|
+
ruleId: string; /** Unique normalized severities present on this rule, ordered as error, warn, then off. */
|
|
108
119
|
severityStates: InspectedRuleUsageSeverity[]; /** ESLint-compatible rule type, when available. */
|
|
109
120
|
ruleType?: InspectedRuleType; /** Source that supplied this rule. */
|
|
110
121
|
source: InspectedRuleSource; /** Whether a builtin rule requires type information, when available. */
|
|
@@ -156,5 +167,8 @@ type InspectConfigResult = {
|
|
|
156
167
|
*/
|
|
157
168
|
declare function inspectConfig(options?: GetConfigOptions): Promise<InspectConfigResult | null>;
|
|
158
169
|
//#endregion
|
|
159
|
-
|
|
170
|
+
//#region src/rules.d.ts
|
|
171
|
+
declare function getOxlintRules(): Promise<RuleInfo[]>;
|
|
172
|
+
//#endregion
|
|
173
|
+
export { type GetConfigOptions, type InspectConfigResult, type InspectConfigStats, type InspectedOverrideGroup, type InspectedOverrideGroupRule, type InspectedPlugin, type InspectedPluginLoadError, type InspectedPluginSource, type InspectedRule, type InspectedRuleConfig, type InspectedRuleSource, type InspectedRuleType, type InspectedRuleUsage, type InspectedRuleUsageSeverity, type RuleInfo, type RuleSeverity, getOxlintRules, inspectConfig, searchPlaces };
|
|
160
174
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/config.ts","../src/plugins.ts","../src/inspect.ts"],"mappings":";KAkBY,gBAAA;EAAgB,+EAE1B,KAAA,YAF0B;EAI1B,UAAA;EAEA,GAAA;AAAA;;cAoBW,YAAA;;;;;;KCED,eAAA;EACV,OAAA;EACA,IAAA;EACA,SAAA;AAAA;;;;;;
|
|
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