UNPKG

856 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.TslintRuleLoaderHost = void 0;
4const tslib_1 = require("tslib");
5const inversify_1 = require("inversify");
6const TSLint = require("tslint");
7const bifrost_1 = require("@fimbul/bifrost");
8let 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};
18TslintRuleLoaderHost = tslib_1.__decorate([
19 inversify_1.injectable()
20], TslintRuleLoaderHost);
21exports.TslintRuleLoaderHost = TslintRuleLoaderHost;
22//# sourceMappingURL=rule-loader.js.map
\No newline at end of file