aboutsummaryrefslogtreecommitdiff
path: root/node_modules/tslint/lib/runner.d.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-05-28 00:38:50 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-05-28 00:40:43 +0200
commit7fff4499fd915bcea3fa93b1aa8b35f4fe7a6027 (patch)
tree6de9a1aebd150a23b7f8c273ec657a5d0a18fe3e /node_modules/tslint/lib/runner.d.ts
parent963b7a41feb29cc4be090a2446bdfe0c1f1bcd81 (diff)
add linting (and some initial fixes)
Diffstat (limited to 'node_modules/tslint/lib/runner.d.ts')
-rw-r--r--node_modules/tslint/lib/runner.d.ts71
1 files changed, 71 insertions, 0 deletions
diff --git a/node_modules/tslint/lib/runner.d.ts b/node_modules/tslint/lib/runner.d.ts
new file mode 100644
index 000000000..d2347f34e
--- /dev/null
+++ b/node_modules/tslint/lib/runner.d.ts
@@ -0,0 +1,71 @@
+/// <reference types="node" />
+export interface IRunnerOptions {
+ /**
+ * Path to a configuration file.
+ */
+ config?: string;
+ /**
+ * Exclude globs from path expansion.
+ */
+ exclude?: string | 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[];
+ /**
+ * That TSLint produces the correct output for the specified directory.
+ */
+ test?: string;
+ /**
+ * Whether to enable type checking when linting a project.
+ */
+ typeCheck?: boolean;
+ /**
+ * Whether to show the current TSLint version.
+ */
+ version?: boolean;
+}
+export declare class Runner {
+ private options;
+ private outputStream;
+ private static trimSingleQuotes(str);
+ constructor(options: IRunnerOptions, outputStream: NodeJS.WritableStream);
+ run(onComplete: (status: number) => void): void;
+ private processFiles(onComplete, files, program?);
+}