3 * Copyright 2013 Palantir Technologies, Inc.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 export interface Options {
19 * Path to a configuration file.
23 * Exclude globs from path expansion.
31 * Whether to return status code 0 even if there are lint errors.
35 * Whether to fixes linting errors for select rules. This may overwrite linted files.
43 * Formatters directory path.
45 formattersDirectory?: string;
47 * Whether to generate a tslint.json config file in the current working directory.
55 * Whether to output absolute paths
57 outputAbsolutePaths?: boolean;
59 * Outputs the configuration to be used instead of linting.
61 printConfig?: boolean;
67 * Whether to hide warnings
71 * Rules directory paths.
73 rulesDirectory?: string | string[];
75 * Run the tests in the given directories to ensure a (custom) TSLint rule's output matches the expected output.
76 * When this property is `true` the `files` property is used to specify the directories from which the tests should be executed.
80 * Whether to enable type checking when linting a project.
84 export declare const enum Status {
89 export interface Logger {
90 log(message: string): void;
91 error(message: string): void;
93 export declare function run(options: Options, logger: Logger): Promise<Status>;