@nlabs/lex
Version:
43 lines (42 loc) • 1.41 kB
TypeScript
export interface LintOptions {
readonly cache?: boolean;
readonly cacheFile?: string;
readonly cacheLocation?: string;
readonly cliName?: string;
readonly color?: boolean;
readonly config?: string;
readonly debug?: boolean;
readonly env?: string;
readonly envInfo?: boolean;
readonly ext?: string;
readonly fix?: boolean;
readonly fixDryRun?: boolean;
readonly fixType?: string;
readonly format?: string;
readonly global?: string;
readonly ignorePath?: string;
readonly ignorePattern?: string;
readonly init?: boolean;
readonly maxWarnings?: string;
readonly noColor?: boolean;
readonly noEslintrc?: boolean;
readonly noIgnore?: boolean;
readonly noInlineConfig?: boolean;
readonly outputFile?: string;
readonly parser?: string;
readonly parserOptions?: string;
readonly plugin?: string;
readonly printConfig?: string;
readonly quiet?: boolean;
readonly removeComments?: boolean;
readonly reportUnusedDisableDirectives?: boolean;
readonly resolvePluginsRelativeTo?: string;
readonly rule?: string;
readonly rulesdir?: string;
readonly stdin?: boolean;
readonly stdinFilename?: string;
}
export type LintCallback = typeof process.exit;
export declare const lint: (cmd: LintOptions & {
"remove-comments"?: boolean;
}, callback?: LintCallback) => Promise<number>;