import tsEslintPlugin from "@typescript-eslint/eslint-plugin";
import { adaptExternalRule, getExternalRuleFromPlugin, } from "../_internal/create-external-rule.js";
import { createReplacementRuleInfo, withDeprecatedRuleLifecycle, } from "../_internal/rule-deprecation.js";
const rule = adaptExternalRule(getExternalRuleFromPlugin(tsEslintPlugin, "no-unnecessary-type-parameters", "@typescript-eslint/eslint-plugin"), "https://nick2bad4u.github.io/eslint-plugin-etc-misc/docs/rules/no-useless-generics");
/**
 * Wrapper rule with explicit lifecycle metadata and replacement mapping.
 */
const deprecatedRule = withDeprecatedRuleLifecycle(rule, {
    message: "Deprecated in favor of @typescript-eslint/no-unnecessary-type-parameters.",
    replacedBy: [
        createReplacementRuleInfo({
            plugin: {
                name: "@typescript-eslint",
                url: "https://typescript-eslint.io/",
            },
            rule: {
                name: "no-unnecessary-type-parameters",
                url: "https://typescript-eslint.io/rules/no-unnecessary-type-parameters",
            },
        }),
    ],
    ruleId: "no-useless-generics",
});
export default deprecatedRule;
//# sourceMappingURL=no-useless-generics.js.map