import { ruleCreator } from "../_internal/rule-creator.js";
// eslint-disable-next-line etc-misc/no-unnecessary-template-literal -- Keep String.raw to preserve backslashes required by AST selector regex parsing.
const disallowedSelector = String.raw `CallExpression[callee.name='Symbol'] > Literal:not([value=/^(?:[\da-z-]|__)+$/u])`;
/**
 * Require `Symbol` descriptions to use kebab-case style.
 */
const rule = ruleCreator({
    create: (context) => ({
        [disallowedSelector]: (node) => {
            context.report({
                messageId: "forbidden",
                node,
            });
        },
    }),
    defaultOptions: [],
    meta: {
        deprecated: false,
        docs: {
            deprecated: false,
            description: "require consistent kebab-case symbol descriptions.",
            frozen: false,
            recommended: false,
            url: "https://nick2bad4u.github.io/eslint-plugin-etc-misc/docs/rules/consistent-symbol-description",
        },
        hasSuggestions: false,
        messages: {
            forbidden: "Prefer kebab-case Symbol descriptions.",
        },
        schema: [],
        type: "suggestion",
    },
    name: "consistent-symbol-description",
});
export default rule;
//# sourceMappingURL=consistent-symbol-description.js.map