@fimbul/valtyr
Version:
Wotan plugin to behave almost like TSLint
22 lines • 851 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.TslintFormatterLoaderHost = void 0;
const tslib_1 = require("tslib");
const inversify_1 = require("inversify");
const TSLint = require("tslint");
const bifrost_1 = require("@fimbul/bifrost");
let TslintFormatterLoaderHost = class TslintFormatterLoaderHost {
constructor() {
this.loadCoreFormatter = loadFormatter;
this.loadCustomFormatter = loadFormatter;
}
};
TslintFormatterLoaderHost = tslib_1.__decorate([
inversify_1.injectable()
], TslintFormatterLoaderHost);
exports.TslintFormatterLoaderHost = TslintFormatterLoaderHost;
function loadFormatter(name) {
const result = TSLint.findFormatter(name);
return result === undefined ? undefined : bifrost_1.wrapTslintFormatter(result);
}
//# sourceMappingURL=formatter-loader.js.map
;