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 selector = String.raw `TSEnumMember:not([id.name=/^[A-Z][A-Z_\d]*$/u], [initializer.value=/^[A-Z][A-Z_\d]*$/u])`;
/**
 * Enforce SCREAMING_SNAKE_CASE enum member names and literal values.
 */
const rule = ruleCreator({
    create: (context) => ({
        [selector]: (node) => {
            context.report({
                messageId: "forbidden",
                node,
            });
        },
    }),
    defaultOptions: [],
    meta: {
        deprecated: false,
        docs: {
            deprecated: false,
            description: "enforce SCREAMING_SNAKE_CASE enum member names and string literal values.",
            frozen: false,
            recommended: false,
            url: "https://nick2bad4u.github.io/eslint-plugin-etc-misc/docs/rules/consistent-enum-members",
        },
        hasSuggestions: false,
        messages: {
            forbidden: "Enum member names and string values must use SCREAMING_SNAKE_CASE.",
        },
        schema: [],
        type: "suggestion",
    },
    name: "consistent-enum-members",
});
export default rule;
//# sourceMappingURL=consistent-enum-members.js.map