@stoplight/spectral-cli
Version:
[](https://stoplight.io/api-governance?utm_source=github&utm_medium=spectral&utm_campaign=readme) [ • 919 B
TypeScript
import { Dictionary } from '@stoplight/types';
import { HumanReadableDiagnosticSeverity } from '@stoplight/spectral-core';
export declare type FailSeverity = HumanReadableDiagnosticSeverity;
export declare enum OutputFormat {
JSON = "json",
STYLISH = "stylish",
JUNIT = "junit",
HTML = "html",
TEXT = "text",
TEAMCITY = "teamcity",
PRETTY = "pretty",
GITHUB_ACTIONS = "github-actions",
SARIF = "sarif",
CODE_CLIMATE = "code-climate",
GITLAB = "gitlab",
MARKDOWN = "markdown"
}
export interface ILintConfig {
encoding: 'utf8' | 'ascii' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'latin1' | 'binary' | 'hex';
format: OutputFormat[];
output?: Dictionary<string>;
resolver?: string;
ruleset?: string;
stdinFilepath?: string;
ignoreUnknownFormat: boolean;
failOnUnmatchedGlobs: boolean;
verbose?: boolean;
quiet?: boolean;
}