/* eslint-disable canonical/no-reassign-imports -- Rule entry map intentionally references imported plugin rules object. */
import { objectEntries, objectFromEntries } from "ts-extras";
import { rules as pluginRules } from "../rules.js";
const getAllPresetSeverity = (ruleModule) => {
    if (ruleModule.meta.deprecated !== false) {
        return "warn";
    }
    return ruleModule.meta.type === "problem" ? "error" : "warn";
};
const allRuleEntries = objectEntries(pluginRules).map(([ruleName, ruleModule]) => [`etc-misc/${ruleName}`, getAllPresetSeverity(ruleModule)]);
const allRules = objectFromEntries(allRuleEntries);
/**
 * Flat config preset enabling every available plugin rule.
 */
export const all = {
    rules: allRules,
};
/* eslint-enable canonical/no-reassign-imports -- Re-enable canonical import reassignment restrictions for the remainder of the file. */
//# sourceMappingURL=all.js.map