/* eslint-disable canonical/no-reassign-imports -- Flat-config preset object intentionally references imported preset modules. */
import { pluginMeta } from "./_internal/plugin-meta.js";
import { allStrict as allStrictConfig } from "./configs/all-strict.js";
import { all as allConfig } from "./configs/all.js";
import { minimal as minimalConfig } from "./configs/minimal.js";
import { recommended as recommendedConfig } from "./configs/recommended.js";
import { strictTypeChecked as strictTypeCheckedConfig } from "./configs/strict-type-checked.js";
import { strict as strictConfig } from "./configs/strict.js";
import { rules } from "./rules.js";
const pluginReference = {
    meta: pluginMeta,
    rules,
};
const withPluginReference = (config) => ({
    plugins: {
        [pluginMeta.namespace]: pluginReference,
    },
    rules: config.rules,
});
/**
 * Plugin configuration presets.
 */
export const configs = {
    all: withPluginReference(allConfig),
    allStrict: withPluginReference(allStrictConfig),
    minimal: withPluginReference(minimalConfig),
    recommended: withPluginReference(recommendedConfig),
    strict: withPluginReference(strictConfig),
    strictTypeChecked: {
        ...withPluginReference(strictTypeCheckedConfig),
        languageOptions: strictTypeCheckedConfig.languageOptions,
    },
};
/* eslint-enable canonical/no-reassign-imports -- Re-enable canonical import reassignment restrictions outside this intentional assembly block. */
//# sourceMappingURL=configs.js.map