1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.TslintFormatterLoaderHost = void 0;
|
4 | const tslib_1 = require("tslib");
|
5 | const inversify_1 = require("inversify");
|
6 | const TSLint = require("tslint");
|
7 | const bifrost_1 = require("@fimbul/bifrost");
|
8 | let TslintFormatterLoaderHost = class TslintFormatterLoaderHost {
|
9 | constructor() {
|
10 | this.loadCoreFormatter = loadFormatter;
|
11 | this.loadCustomFormatter = loadFormatter;
|
12 | }
|
13 | };
|
14 | TslintFormatterLoaderHost = tslib_1.__decorate([
|
15 | inversify_1.injectable()
|
16 | ], TslintFormatterLoaderHost);
|
17 | exports.TslintFormatterLoaderHost = TslintFormatterLoaderHost;
|
18 | function loadFormatter(name) {
|
19 | const result = TSLint.findFormatter(name);
|
20 | return result === undefined ? undefined : bifrost_1.wrapTslintFormatter(result);
|
21 | }
|
22 |
|
\ | No newline at end of file |