UNPKG

480 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const runner_1 = require("tslint/lib/runner");
4class 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}
17exports.TsLintRunner = TsLintRunner;