@fimbul/valtyr
Version:
Wotan plugin to behave almost like TSLint
22 lines • 856 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.TslintRuleLoaderHost = void 0;
const tslib_1 = require("tslib");
const inversify_1 = require("inversify");
const TSLint = require("tslint");
const bifrost_1 = require("@fimbul/bifrost");
let TslintRuleLoaderHost = class TslintRuleLoaderHost {
loadCoreRule(name) {
const rule = TSLint.findRule(name);
return rule === undefined ? undefined : bifrost_1.wrapTslintRule(rule, name);
}
loadCustomRule(name, dir) {
const rule = TSLint.findRule(name, dir);
return rule === undefined ? undefined : bifrost_1.wrapTslintRule(rule, name);
}
};
TslintRuleLoaderHost = tslib_1.__decorate([
inversify_1.injectable()
], TslintRuleLoaderHost);
exports.TslintRuleLoaderHost = TslintRuleLoaderHost;
//# sourceMappingURL=rule-loader.js.map
;