UNPKG

@stoplight/spectral-cli

Version:

[![](https://raw.githubusercontent.com/stoplightio/spectral/develop/docs/img/readme-header.svg)](https://stoplight.io/api-governance?utm_source=github&utm_medium=spectral&utm_campaign=readme) [![CircleCI](https://img.shields.io/circleci/build/github/stopl

30 lines (29 loc) 919 B
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; }