import unicornPlugin from "eslint-plugin-unicorn";
import { adaptExternalRule, getExternalRuleFromPlugin, } from "../_internal/create-external-rule.js";
import { createReplacementRuleInfo, withDeprecatedRuleLifecycle, } from "../_internal/rule-deprecation.js";
const rule = adaptExternalRule(getExternalRuleFromPlugin(unicornPlugin, "throw-new-error", "eslint-plugin-unicorn"), "https://nick2bad4u.github.io/eslint-plugin-etc-misc/docs/rules/throw-new-error");
/**
 * Wrapper rule with explicit lifecycle metadata and replacement mapping.
 */
const deprecatedRule = withDeprecatedRuleLifecycle(rule, {
    message: "Deprecated in favor of unicorn/throw-new-error.",
    replacedBy: [
        createReplacementRuleInfo({
            plugin: {
                name: "unicorn",
                url: "https://github.com/sindresorhus/eslint-plugin-unicorn",
            },
            rule: {
                name: "throw-new-error",
                url: "https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/throw-new-error.md",
            },
        }),
    ],
    ruleId: "throw-new-error",
});
export default deprecatedRule;
//# sourceMappingURL=throw-new-error.js.map