1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.TslintRuleLoaderHost = 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 TslintRuleLoaderHost = class TslintRuleLoaderHost {
|
9 | loadCoreRule(name) {
|
10 | const rule = TSLint.findRule(name);
|
11 | return rule === undefined ? undefined : bifrost_1.wrapTslintRule(rule, name);
|
12 | }
|
13 | loadCustomRule(name, dir) {
|
14 | const rule = TSLint.findRule(name, dir);
|
15 | return rule === undefined ? undefined : bifrost_1.wrapTslintRule(rule, name);
|
16 | }
|
17 | };
|
18 | TslintRuleLoaderHost = tslib_1.__decorate([
|
19 | inversify_1.injectable()
|
20 | ], TslintRuleLoaderHost);
|
21 | exports.TslintRuleLoaderHost = TslintRuleLoaderHost;
|
22 |
|
\ | No newline at end of file |