import { ruleCreator } from "./rule-creator.js";
/**
 * Create a no-options rule that reports every node matching the provided
 * selector.
 */
export const createSelectorRule = (input) => ruleCreator({
    create: (context) => ({
        [input.selector]: (node) => {
            context.report({
                messageId: input.messageId,
                node,
            });
        },
    }),
    defaultOptions: [],
    meta: {
        docs: {
            description: input.description,
            recommended: false,
            url: input.url,
        },
        hasSuggestions: false,
        messages: {
            [input.messageId]: input.message,
        },
        schema: [],
        type: input.type,
    },
    name: input.name,
});
//# sourceMappingURL=create-selector-rule.js.map