printer-notifications/node_modules/eslint-plugin-svelte/lib/utils/index.js
2023-11-13 16:10:04 -05:00

19 lines
511 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createRule = void 0;
function createRule(ruleName, rule) {
return {
meta: {
...rule.meta,
docs: {
...rule.meta.docs,
url: `https://sveltejs.github.io/eslint-plugin-svelte/rules/${ruleName}/`,
ruleId: `svelte/${ruleName}`,
ruleName
}
},
create: rule.create
};
}
exports.createRule = createRule;