mirror of
https://github.com/LukeHagar/redocly-cli.git
synced 2025-12-07 12:47:49 +00:00
chore: rename 'lint' to 'styleguide' (#790)
Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { parseYaml } from '../js-yaml';
|
||||
import { Document, Source } from '../resolve';
|
||||
import { Oas3RuleSet } from '../oas-types';
|
||||
import { LintConfig, mergeExtends, resolvePlugins } from '../config';
|
||||
import { StyleguideConfig, mergeExtends, resolvePlugins } from '../config';
|
||||
|
||||
import type { RuleConfig, Plugin, ResolvedLintConfig } from '../config/types';
|
||||
import type { RuleConfig, Plugin, ResolvedStyleguideConfig } from '../config/types';
|
||||
|
||||
export function parseYamlToDocument(body: string, absoluteRef: string = ''): Document {
|
||||
return {
|
||||
@@ -25,12 +25,12 @@ export function makeConfigForRuleset(rules: Oas3RuleSet, plugin?: Partial<Plugin
|
||||
id: ruleId,
|
||||
rules: { oas3: rules },
|
||||
},
|
||||
]) as ResolvedLintConfig,
|
||||
]) as ResolvedStyleguideConfig,
|
||||
];
|
||||
if (rules) {
|
||||
extendConfigs.push({ rules });
|
||||
}
|
||||
const lint = mergeExtends(extendConfigs);
|
||||
const styleguide = mergeExtends(extendConfigs);
|
||||
|
||||
return new LintConfig(lint);
|
||||
return new StyleguideConfig(styleguide);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user