ffbt
Version:
Build a Typescript app without pain
19 lines (18 loc) • 511 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TsLintRunner = void 0;
const runner_1 = require("tslint/lib/runner");
class TsLintRunner {
constructor(config) {
this.config = config;
}
run() {
runner_1.run(this.config, console)
.then(returnCode => process.exitCode = returnCode)
.catch(error => {
console.error(error);
process.exitCode = 1;
});
}
}
exports.TsLintRunner = TsLintRunner;