12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- export interface Options {
- /**
- * Path to a configuration file.
- */
- config?: string;
- /**
- * Exclude globs from path expansion.
- */
- exclude: string[];
- /**
- * File paths to lint.
- */
- files: string[];
- /**
- * Whether to return status code 0 even if there are lint errors.
- */
- force?: boolean;
- /**
- * Whether to fixes linting errors for select rules. This may overwrite linted files.
- */
- fix?: boolean;
- /**
- * Output format.
- */
- format?: string;
- /**
- * Formatters directory path.
- */
- formattersDirectory?: string;
- /**
- * Whether to generate a tslint.json config file in the current working directory.
- */
- init?: boolean;
- /**
- * Output file path.
- */
- out?: string;
- /**
- * Whether to output absolute paths
- */
- outputAbsolutePaths?: boolean;
- /**
- * tsconfig.json file.
- */
- project?: string;
- /**
- * Rules directory paths.
- */
- rulesDirectory?: string | string[];
- /**
- * Run the tests in the given directories to ensure a (custom) TSLint rule's output matches the expected output.
- * When this property is `true` the `files` property is used to specify the directories from which the tests should be executed.
- */
- test?: boolean;
- /**
- * Whether to enable type checking when linting a project.
- */
- typeCheck?: boolean;
- }
- export declare const enum Status {
- Ok = 0,
- FatalError = 1,
- LintError = 2,
- }
- export interface Logger {
- log(message: string): void;
- error(message: string): void;
- }
- export declare function run(options: Options, logger: Logger): Promise<Status>;
|