UNPKG

eslint-plugin-obsidian

Version:

ESLint rules for Obsidian

16 lines 745 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.create = create; const injectComponentHandler_1 = require("./injectComponentHandler"); const callExpression_1 = require("../../dto/callExpression"); const errorReporter_1 = require("./result/errorReporter"); const typeValidator_1 = require("./typeValidator"); function create(context, options) { const injectComponentHandler = new injectComponentHandler_1.InjectComponentHandler(new typeValidator_1.TypeValidator(options), new errorReporter_1.ErrorReporter(context)); return { CallExpression(node) { injectComponentHandler.handle(new callExpression_1.CallExpression(node)); }, }; } //# sourceMappingURL=createRule.js.map