{"version":3,"file":"index.cjs","names":["noReact19ApiRule"],"sources":["../src/index.ts"],"sourcesContent":["import type { Linter, Rule } from \"eslint\";\nimport noReact19ApiRule from \"./rules/no-react19-api\";\n\n/** -------------------------------------------------------------\n * * ***All rules provided by the `@rzl-zone/eslint` plugin.***\n * -------------------------------------------------------------\n *\n * Keys represent rule names **without** the plugin prefix.\n *\n * @example\n * ```ts\n * rules: {\n *   \"@rzl-zone/eslint/no-react19-api\": \"error\"\n * }\n * ```\n */\nexport const rules = {\n  \"no-react19-api\": noReact19ApiRule\n} satisfies Record<string, Rule.RuleModule>;\n\n/** -------------------------------------------------------------\n * * ***Preset rule configurations intended to be consumed via\n * `plugin.configs`.***\n * -------------------------------------------------------------\n *\n * ⚠️ These presets **do NOT register the plugin** and are\n * **NOT flat-config ready** on their own.\n *\n * They exist primarily for:\n * - Backward compatibility\n * - Programmatic composition\n * - Documentation parity with classic ESLint plugins\n */\nconst presets = {\n  /** -------------------------------------------------------------\n   * * ***Recommended rule set for `@rzl-zone/eslint`.***\n   * -------------------------------------------------------------\n   */\n  recommended: {\n    rules: {\n      \"@rzl-zone/eslint/no-react19-api\": \"error\"\n    } as Linter.RulesRecord\n  }\n} satisfies Record<string, Linter.Config>;\n\n/** -------------------------------------------------------------\n * * ***The `eslint-rzlzone` ESLint plugin definition.***\n * -------------------------------------------------------------\n *\n * This object registers:\n * - Plugin metadata\n * - Available rules\n * - Rule-only preset configurations\n *\n * @example\n * ```ts\n * plugins: {\n *   \"@rzl-zone/eslint\": plugin\n * }\n * ```\n */\nconst plugin = {\n  meta: {\n    name: \"@rzl-zone/eslint\"\n  },\n  rules,\n  configs: presets\n};\n\n/** -------------------------------------------------------------\n * * ***Flat Config compatible preset for `eslint-rzlzone`.***\n * -------------------------------------------------------------\n *\n * This configuration:\n * - Registers the plugin\n * - Applies the recommended rule set\n * - Can be used directly in `defineConfig`\n *\n * @example\n * ```ts\n * import { defineConfig } from \"eslint/config\";\n * import { flatConfigs } from \"@rzl-zone/eslint\";\n *\n * export default defineConfig([\n *   flatConfigs.recommended\n * ]);\n * ```\n */\nconst flatRecommended = {\n  name: \"@rzl-zone/eslint/recommended\",\n  plugins: {\n    \"@rzl-zone/eslint\": plugin\n  },\n  rules: {\n    ...presets.recommended.rules\n  }\n};\n\nexport default plugin;\n\n/** Named export for rule access */\nexport { plugin as plugins };\n\n/** -------------------------------------------------------------\n * * ***Flat-config-ready presets.***\n * -------------------------------------------------------------\n *\n * These are the **preferred exports** when using ESLint v9+\n * with `defineConfig`.\n */\nexport const flatConfigs = {\n  recommended: flatRecommended as Linter.Config\n};\n"],"mappings":";;;;;;;;;;+FAgBA,MAAa,EAAQ,CACnB,qDAAkBA,CAAAA,CAAAA,OACpB,EAeM,EAAU,CAKd,YAAa,CACX,MAAO,CACL,kCAAmC,OACrC,CACF,CACF,EAkBM,EAAS,CACb,KAAM,CACJ,KAAM,kBACR,EACA,QACA,QAAS,CACX,EA2Ca,EAAc,CACzB,YAAa,CAtBb,KAAM,+BACN,QAAS,CACP,mBAAoB,CACtB,EACA,MAAO,CACL,GAAG,EAAQ,YAAY,KACzB,CAgBa,CACf"}
