1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const runner_1 = require("tslint/lib/runner");
|
4 | class TsLintRunner {
|
5 | constructor(config) {
|
6 | this.config = config;
|
7 | }
|
8 | run() {
|
9 | runner_1.run(this.config, console)
|
10 | .then(returnCode => process.exitCode = returnCode)
|
11 | .catch(error => {
|
12 | console.error(error);
|
13 | process.exitCode = 1;
|
14 | });
|
15 | }
|
16 | }
|
17 | exports.TsLintRunner = TsLintRunner;
|