import { IMutationsProvider, IMutationsWave } from "automutate/lib/mutationsProvider"; /** * Settings to run waves of TSLint. */ export interface ITslintRunnerSettings { /** * Path to a configuration file. */ config?: string; /** * Exclude globs from path expansion. */ exclude?: string | string[]; /** * File paths to lint. */ files?: string[]; /** * tsconfig.json file. */ project?: string; /** * Rules directory paths. */ rulesDirectory?: string | string[]; /** * Whether to enable type checking when linting a project. */ typeCheck?: boolean; } /** * Provides waves of TSLint failure fixes as file mutations. */ export declare class TslintMutationsProvider implements IMutationsProvider { /** * Transforms TSLint Fix objects to automutate mutations. */ private readonly fixesTransformer; /** * Intermediary stream to hold lint results. */ private readonly stream; /** * Settings to run TSLint. */ private readonly settings; /** * Runs a wave of TSLint. */ private readonly runner; /** * Initializes a new instance of the TslintMutationsProvider class. * * @param settings Settings to run TSLint. */ constructor(settings: ITslintRunnerSettings); /** * @returns A Promise for a wave of file mutations. */ provide(): Promise; }