@zayne-labs/eslint-config 0.8.2 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/globs.ts","../src/utils.ts","../src/configs/astro.ts","../src/configs/comments.ts","../src/configs/ignores.ts","../src/configs/imports.ts","../src/configs/javascript.ts","../src/configs/jsdoc.ts","../src/configs/jsonc.ts","../src/configs/node.ts","../src/configs/perfectionist.ts","../src/configs/pnpm.ts","../src/constants.ts","../src/configs/react.ts","../src/configs/solid.ts","../src/configs/sort.ts","../src/configs/stylistic.ts","../src/configs/tailwindcss.ts","../src/configs/tanstack.ts","../src/configs/toml.ts","../src/configs/typescript.ts","../src/configs/unicorn.ts","../src/configs/vue.ts","../src/configs/yaml.ts","../src/configs/jsx.ts","../src/factory.ts"],"names":["typescript","stylistic","defineEnum","isPackageExists","jsx","ignores"],"mappings":";;;;;;;;;;AAEO,IAAM,YAAe,GAAA;AACrB,IAAM,QAAW,GAAA;AAEjB,IAAM,OAAU,GAAA;AAChB,IAAM,QAAW,GAAA;AAEjB,IAAM,OAAU,GAAA;AAChB,IAAM,QAAW,GAAA;AAEjB,IAAM,WAAc,GAAA;AACpB,IAAM,QAAW,GAAA;AACjB,IAAM,YAAe,GAAA;AACrB,IAAM,SAAY,GAAA;AAClB,IAAM,SAAY,GAAA;AAElB,IAAM,SAAY,GAAA;AAClB,IAAM,UAAa,GAAA;AACnB,IAAM,UAAa,GAAA;AAEnB,IAAM,aAAgB,GAAA;AACtB,IAAM,yBAA4B,GAAA;AAClC,IAAM,WAAc,GAAA;AACpB,IAAM,QAAW,GAAA;AACjB,IAAM,SAAY,GAAA;AAClB,IAAM,SAAY,GAAA;AAClB,IAAM,QAAW,GAAA;AACjB,IAAM,QAAW,GAAA;AACjB,IAAM,SAAY,GAAA;AAClB,IAAM,UAAa,GAAA;AACnB,IAAM,aAAgB,GAAA;AACt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AAI,kBAAqD,EAAA;AAExE,EAAA,QAAA,GAAW,QAAS,CAAA,MAAA,CAAO,GAAG,OAAA,EAAS,GAAI,WAAuB,CAAA;AAElE,EAAA,IAAI,iBAAmB,EAAA;AACtB,IAAW,QAAA,GAAA,QAAA,CAAS,cAAc,sBAAsB,CAAA;AAAA;AAGzD,EAAO,OAAA,QAAA;AACR","file":"index.js","sourcesContent":["import { defineEnum } from \"@zayne-labs/toolkit-type-helpers\";\n\nexport const GLOB_SRC_EXT = \"?([cm])[jt]s?(x)\";\nexport const GLOB_SRC = \"**/*.?([cm])[jt]s?(x)\";\n\nexport const GLOB_JS = \"**/*.?([cm])js\";\nexport const GLOB_JSX = \"**/*.?([cm])jsx\";\n\nexport const GLOB_TS = \"**/*.?([cm])ts\";\nexport const GLOB_TSX = \"**/*.?([cm])tsx\";\n\nexport const GLOB_STYLES = \"**/*.{c,le,sc}ss\";\nexport const GLOB_CSS = \"**/*.css\";\nexport const GLOB_POSTCSS = \"**/*.{p,post}css\";\nexport const GLOB_LESS = \"**/*.less\";\nexport const GLOB_SCSS = \"**/*.scss\";\n\nexport const GLOB_JSON = \"**/*.json\";\nexport const GLOB_JSON5 = \"**/*.json5\";\nexport const GLOB_JSONC = \"**/*.jsonc\";\n\nexport const GLOB_MARKDOWN = \"**/*.md\";\nexport const GLOB_MARKDOWN_IN_MARKDOWN = \"**/*.md/*.md\";\nexport const GLOB_SVELTE = \"**/*.svelte\";\nexport const GLOB_VUE = \"**/*.vue\";\nexport const GLOB_YAML = \"**/*.y?(a)ml\";\nexport const GLOB_TOML = \"**/*.toml\";\nexport const GLOB_XML = \"**/*.xml\";\nexport const GLOB_SVG = \"**/*.svg\";\nexport const GLOB_HTML = \"**/*.htm?(l)\";\nexport const GLOB_ASTRO = \"**/*.astro\";\nexport const GLOB_ASTRO_TS = \"**/*.astro/*.ts\";\nexport const GLOB_GRAPHQL = \"**/*.{g,graph}ql\";\n\nexport const GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`;\n\nexport const GLOB_TESTS = defineEnum([\n\t`**/__tests__/**/*.${GLOB_SRC_EXT}`,\n\t`**/*.spec.${GLOB_SRC_EXT}`,\n\t`**/*.test.${GLOB_SRC_EXT}`,\n\t`**/*.bench.${GLOB_SRC_EXT}`,\n\t`**/*.benchmark.${GLOB_SRC_EXT}`,\n]);\n\nexport const GLOB_ALL_SRC = [\n\tGLOB_SRC,\n\tGLOB_STYLES,\n\tGLOB_JSON,\n\tGLOB_JSON5,\n\tGLOB_MARKDOWN,\n\tGLOB_SVELTE,\n\tGLOB_VUE,\n\tGLOB_YAML,\n\tGLOB_XML,\n\tGLOB_HTML,\n];\n\nexport const GLOB_EXCLUDE = defineEnum([\n\t\"**/node_modules\",\n\t\"**/dist\",\n\t\"**/package-lock.json\",\n\t\"**/yarn.lock\",\n\t\"**/pnpm-lock.yaml\",\n\t\"**/bun.lockb\",\n\n\t\"**/output\",\n\t\"**/coverage\",\n\t\"**/temp\",\n\t\"**/.temp\",\n\t\"**/tmp\",\n\t\"**/.tmp\",\n\t\"**/.history\",\n\t\"**/.vitepress/cache\",\n\t\"**/.nuxt\",\n\t\"**/.next\",\n\t\"**/.svelte-kit\",\n\t\"**/.vercel\",\n\t\"**/.changeset\",\n\t\"**/.idea\",\n\t\"**/.cache\",\n\t\"**/.output\",\n\t\"**/.vite-inspect\",\n\t\"**/.yarn\",\n\t\"**/vite.config.*.timestamp-*\",\n\n\t\"**/CHANGELOG*.md\",\n\t\"**/*.min.*\",\n\t\"**/LICENSE*\",\n\t\"**/__snapshots__\",\n\t\"**/auto-import?(s).d.ts\",\n\t\"**/components.d.ts\",\n]);\n","import { fileURLToPath } from \"node:url\";\nimport type { ESLint, Linter } from \"eslint\";\nimport { isPackageExists } from \"local-pkg\";\nimport type { Awaitable, Rules, TypedFlatConfigItem } from \"./types\";\n\nexport const isObject = <TObject extends Record<string, unknown>>(value: unknown): value is TObject => {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value);\n};\n\n/**\n * @description - Combine array and non-array configs into a single array.\n */\nexport const combine = async (\n\t...configs: Array<Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[]>>\n): Promise<TypedFlatConfigItem[]> => {\n\tconst resolved = await Promise.all(configs);\n\n\treturn resolved.flat();\n};\n\nexport const interopDefault = async <TModule>(\n\tmodule: Awaitable<TModule>\n): Promise<TModule extends { default: infer TDefaultExport } ? TDefaultExport : TModule> => {\n\tconst resolved = await module;\n\n\t// eslint-disable-next-line ts-eslint/no-unnecessary-condition -- casting is necessary to prevent assignability ts issues at call-site\n\treturn (resolved as { default: never }).default ?? resolved;\n};\n\n/**\n * @description - Rename plugin prefixes in a rule object.\n * Accepts a map of prefixes to rename.\n *\n * @example\n * ```ts\n * import { renameRules } from '@zayne-labs/eslint-config'\n *\n * export default [{\n * rules: renameRules(\n * {\n * '@typescript-eslint/indent': 'error'\n * },\n * { '@typescript-eslint': 'ts' }\n * )\n * }]\n * ```\n */\nexport const renameRules = (\n\trules: Record<string, unknown> | undefined,\n\trenameMap: Record<string, string>\n): (Partial<Linter.RulesRecord> & Rules) | undefined => {\n\tif (!rules) return;\n\n\tconst renamedRulesEntries = Object.entries(rules).map(([ruleKey, ruleValue]) => {\n\t\tfor (const [oldRuleName, newRuleName] of Object.entries(renameMap)) {\n\t\t\tif (ruleKey.startsWith(`${oldRuleName}/`)) {\n\t\t\t\treturn [`${newRuleName}${ruleKey.slice(oldRuleName.length)}`, ruleValue];\n\t\t\t}\n\t\t}\n\n\t\treturn [ruleKey, ruleValue];\n\t});\n\n\treturn Object.fromEntries(renamedRulesEntries) as TypedFlatConfigItem[\"rules\"];\n};\n\nexport const renamePlugins = (\n\tplugins: Record<string, unknown> | undefined,\n\trenameMap: Record<string, string>\n): Record<string, ESLint.Plugin> | undefined => {\n\tif (!plugins) return;\n\n\tconst renamedPluginEntries = Object.entries(plugins).map(([pluginKey, pluginValue]) => {\n\t\tif (pluginKey in renameMap) {\n\t\t\treturn [renameMap[pluginKey], pluginValue];\n\t\t}\n\n\t\treturn [pluginKey, pluginValue];\n\t});\n\n\treturn Object.fromEntries(renamedPluginEntries) as Record<string, ESLint.Plugin>;\n};\n\n/**\n * @description - Rename plugin names a flat configs array\n *\n * @example\n * ```ts\n * import { renamePluginInConfigs } from '@zayne-labs/eslint-config'\n * import someConfigs from './some-configs'\n *\n * export default renamePluginInConfigs(someConfigs, {\n * '@typescript-eslint': 'ts',\n * 'import-x': 'import',\n * })\n * ```\n */\nexport const renamePluginInConfigs = (options: {\n\tconfigs: TypedFlatConfigItem[];\n\toverrides?: TypedFlatConfigItem;\n\trenameMap: Record<string, string>;\n}): TypedFlatConfigItem[] => {\n\tconst { configs, overrides, renameMap } = options;\n\n\tconst renamedConfigs = configs.map((config) => ({\n\t\t...config,\n\t\t...overrides,\n\n\t\t...(isObject(config.plugins) && {\n\t\t\tplugins: renamePlugins(config.plugins, renameMap),\n\t\t}),\n\t\t...(isObject(config.rules) && {\n\t\t\trules: renameRules(config.rules, renameMap),\n\t\t}),\n\t}));\n\n\treturn renamedConfigs;\n};\n\nconst scopeUrl = fileURLToPath(new URL(\".\", import.meta.url));\nconst isCwdInScope = isPackageExists(\"@zayne-labs/eslint-config\");\n\nexport const isPackageInScope = (name: string): boolean => isPackageExists(name, { paths: [scopeUrl] });\n\n/**\n * @description\n * - Ensures that packages are installed in the current scope.\n * - If they are not installed, and the user is in a TTY, and the user is not in a CI environment,\n * and the user is in the same scope as this package, then prompt the user to\n * install the packages.\n *\n * @param packages - The packages to ensure are installed.\n */\nexport const ensurePackages = async (packages: Array<string | undefined>): Promise<void> => {\n\tif (process.env.CI || !process.stdout.isTTY || !isCwdInScope) return;\n\n\tconst nonExistingPackages = packages.filter((pkg) => pkg && !isPackageInScope(pkg));\n\n\tif (nonExistingPackages.length === 0) return;\n\n\tconst clackPrompt = await import(\"@clack/prompts\");\n\n\tconst result = await clackPrompt.confirm({\n\t\tmessage: `${nonExistingPackages.length === 1 ? \"Package is\" : \"Packages are\"} required for this config: ${nonExistingPackages.join(\", \")}. Do you want to install them?`,\n\t});\n\n\tif (result) {\n\t\tconst antfuPkg = await import(\"@antfu/install-pkg\");\n\n\t\tawait antfuPkg.installPackage(nonExistingPackages as string[], { dev: true });\n\t}\n};\n\nexport const resolveOptions = <TObject>(option: boolean | TObject | undefined) =>\n\tisObject(option) ? option : ({} as TObject);\n\n// type OverrideOptions<TConfigName extends string> = UnionDiscriminator<\n// \t[{ name: TConfigName }, { configName: TConfigName }]\n// > & {\n// \t// files?: string[];\n// \toverrides: TypedFlatConfigItem[\"rules\"];\n// };\n\n// export const createOverrideRules = <TConfigName extends string>(options: OverrideOptions<TConfigName>) => {\n// \tconst { configName, name, overrides } = options;\n\n// \tif (!isObject(overrides)) {\n// \t\treturn {} as never;\n// \t}\n\n// \treturn defineEnum({\n// \t\t// ...(files && { files }),\n// \t\tname: name ? `zayne/${name}` : `zayne/${configName}/rules/overrides`,\n// \t\trules: overrides,\n// \t}) satisfies TypedFlatConfigItem;\n// };\n","import { GLOB_ASTRO } from \"../globs\";\nimport type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"../types\";\nimport { interopDefault } from \"../utils\";\n\nexport const astro = async (\n\toptions: ExtractOptions<OptionsConfig[\"astro\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { files = [GLOB_ASTRO], overrides, typescript = true } = options;\n\n\tconst [pluginAstro, parserAstro] = await Promise.all([\n\t\tinteropDefault(import(\"eslint-plugin-astro\")),\n\t\tinteropDefault(import(\"astro-eslint-parser\")),\n\t]);\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/astro/setup\",\n\n\t\t\tplugins: {\n\t\t\t\tastro: pluginAstro,\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tlanguageOptions: {\n\t\t\t\tglobals: pluginAstro.environments.astro.globals,\n\t\t\t\tparser: parserAstro,\n\t\t\t\tparserOptions: {\n\t\t\t\t\textraFileExtensions: [\".astro\"],\n\t\t\t\t\t// eslint-disable-next-line unicorn/no-await-expression-member -- ignore for now\n\t\t\t\t\t...(typescript && { parser: (await interopDefault(import(\"typescript-eslint\"))).parser }),\n\t\t\t\t},\n\t\t\t\tsourceType: \"module\",\n\t\t\t},\n\n\t\t\tname: \"zayne/astro/recommended\",\n\n\t\t\tprocessor: typescript ? \"astro/client-side-ts\" : \"astro/astro\",\n\n\t\t\trules: pluginAstro.configs.recommended.at(-1)?.rules,\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/astro/rules\",\n\n\t\t\trules: {\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n","import { interopDefault } from \"@/utils\";\nimport type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"../types\";\n\nexport const comments = async (\n\toptions: ExtractOptions<OptionsConfig[\"comments\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, type = \"app\" } = options;\n\n\tconst eslintPluginComments = await interopDefault(\n\t\timport(\"@eslint-community/eslint-plugin-eslint-comments\")\n\t);\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/eslint-comments/rules\",\n\t\t\tplugins: {\n\t\t\t\t\"eslint-comments\": eslintPluginComments,\n\t\t\t},\n\n\t\t\trules: {\n\t\t\t\t\"eslint-comments/disable-enable-pair\": [\"error\", { allowWholeFile: true }],\n\t\t\t\t\"eslint-comments/no-aggregating-enable\": \"error\",\n\t\t\t\t\"eslint-comments/no-duplicate-disable\": \"error\",\n\t\t\t\t\"eslint-comments/no-unlimited-disable\": \"error\",\n\t\t\t\t\"eslint-comments/no-unused-enable\": \"error\",\n\n\t\t\t\t...(type !== \"app\" && {\n\t\t\t\t\t\"eslint-comments/require-description\": \"warn\",\n\t\t\t\t}),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n","import { interopDefault } from \"@/utils\";\nimport { globalIgnores } from \"eslint/config\";\nimport { GLOB_EXCLUDE } from \"../globs\";\nimport type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"../types\";\n\nexport const ignores = (userIgnores: string[] = []): TypedFlatConfigItem[] => {\n\treturn [globalIgnores([...GLOB_EXCLUDE, ...userIgnores], \"zayne/defaults/ignores\")];\n};\n\nexport const gitIgnores = async (\n\toptions?: ExtractOptions<OptionsConfig[\"gitignore\"]>\n): Promise<TypedFlatConfigItem[]> => {\n\tconst antfuGitIgnore = await interopDefault(import(\"eslint-config-flat-gitignore\"));\n\n\tconst config = antfuGitIgnore({\n\t\tname: \"zayne/gitignore\",\n\t\tstrict: false,\n\t\t...options,\n\t});\n\n\treturn [config];\n};\n","import type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault } from \"@/utils\";\n\nconst imports = async (\n\toptions: ExtractOptions<OptionsConfig[\"imports\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, stylistic = true, typescript = true } = options;\n\n\tconst eslintPluginImportX = await interopDefault(import(\"eslint-plugin-import-x\"));\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/import/setup\",\n\n\t\t\tplugins: {\n\t\t\t\timport: eslintPluginImportX,\n\t\t\t},\n\n\t\t\t...(typescript && {\n\t\t\t\tsettings: eslintPluginImportX.flatConfigs.typescript.settings,\n\t\t\t}),\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/import/recommended\",\n\n\t\t\trules: {\n\t\t\t\t...eslintPluginImportX.flatConfigs.recommended.rules,\n\t\t\t\t...(typescript && eslintPluginImportX.flatConfigs.typescript.rules),\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/import/rules\",\n\n\t\t\trules: {\n\t\t\t\t// == This rules keeps giving issues, so off for now\n\t\t\t\t\"import/extensions\": \"off\",\n\t\t\t\t// \"import/extensions\": [\n\t\t\t\t// \t\"error\",\n\t\t\t\t// \t\"never\",\n\t\t\t\t// \t{ ignorePackages: true, pattern: { css: \"always\", png: \"always\", svg: \"always\" } },\n\t\t\t\t// ],\n\t\t\t\t\"import/first\": \"error\",\n\t\t\t\t\"import/no-absolute-path\": \"error\",\n\t\t\t\t// \"import/no-cycle\": [\"error\", { ignoreExternal: true, maxDepth: 3 }],\n\t\t\t\t\"import/no-duplicates\": \"error\",\n\t\t\t\t\"import/no-extraneous-dependencies\": [\"error\", { devDependencies: true }],\n\t\t\t\t\"import/no-mutable-exports\": \"error\",\n\t\t\t\t\"import/no-named-default\": \"error\",\n\t\t\t\t\"import/no-relative-packages\": \"error\",\n\t\t\t\t\"import/no-self-import\": \"error\",\n\t\t\t\t\"import/no-unresolved\": \"off\",\n\t\t\t\t\"import/no-useless-path-segments\": [\"error\", { commonjs: true }],\n\t\t\t\t\"import/no-webpack-loader-syntax\": \"error\",\n\n\t\t\t\t...(stylistic && { \"import/newline-after-import\": \"error\" }),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { imports };\n","import type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault } from \"@/utils\";\nimport globals from \"globals\";\n\nconst javascript = async (\n\toptions: ExtractOptions<OptionsConfig[\"javascript\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides } = options;\n\n\tconst eslintJs = await interopDefault(import(\"@eslint/js\"));\n\n\treturn [\n\t\t{\n\t\t\tlanguageOptions: {\n\t\t\t\tecmaVersion: \"latest\",\n\n\t\t\t\tglobals: {\n\t\t\t\t\t...globals.browser,\n\t\t\t\t\t...globals.node,\n\t\t\t\t\tdocument: \"readonly\",\n\t\t\t\t\tnavigator: \"readonly\",\n\t\t\t\t\twindow: \"readonly\",\n\t\t\t\t},\n\n\t\t\t\tparserOptions: {\n\t\t\t\t\tecmaVersion: \"latest\",\n\t\t\t\t\tsourceType: \"module\",\n\t\t\t\t},\n\n\t\t\t\tsourceType: \"module\",\n\t\t\t},\n\n\t\t\tlinterOptions: {\n\t\t\t\treportUnusedDisableDirectives: true,\n\t\t\t},\n\n\t\t\tname: \"zayne/js-eslint/setup\",\n\t\t},\n\t\t{\n\t\t\t...eslintJs.configs.recommended,\n\n\t\t\tname: \"zayne/js-eslint/recommended\",\n\t\t},\n\t\t{\n\t\t\tname: \"zayne/js-eslint/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"accessor-pairs\": [\"error\", { enforceForClassMembers: true, setWithoutGet: true }],\n\t\t\t\t\"array-callback-return\": [\"error\", { allowImplicit: true }],\n\t\t\t\t\"block-scoped-var\": \"error\",\n\t\t\t\t\"class-methods-use-this\": \"error\",\n\t\t\t\tcomplexity: [\"warn\", 50],\n\t\t\t\t\"constructor-super\": \"error\",\n\t\t\t\tcurly: [\"error\", \"multi-line\"],\n\t\t\t\t\"default-case\": [\"error\", { commentPattern: \"^no default$\" }],\n\t\t\t\t\"default-case-last\": \"error\",\n\t\t\t\t\"default-param-last\": \"error\",\n\t\t\t\t\"dot-notation\": [\"error\", { allowKeywords: true }],\n\t\t\t\teqeqeq: [\"error\", \"always\", { null: \"ignore\" }],\n\t\t\t\t\"grouped-accessor-pairs\": \"error\",\n\t\t\t\t\"logical-assignment-operators\": \"warn\",\n\t\t\t\t\"max-depth\": [\"error\", 2],\n\t\t\t\t\"new-cap\": [\"error\", { capIsNew: false, newIsCap: true, properties: true }],\n\t\t\t\t\"no-alert\": \"warn\",\n\t\t\t\t\"no-array-constructor\": \"error\",\n\t\t\t\t\"no-async-promise-executor\": \"error\",\n\t\t\t\t\"no-await-in-loop\": \"error\",\n\t\t\t\t\"no-caller\": \"error\",\n\t\t\t\t\"no-case-declarations\": \"error\",\n\t\t\t\t\"no-class-assign\": \"error\",\n\t\t\t\t\"no-compare-neg-zero\": \"error\",\n\t\t\t\t\"no-cond-assign\": [\"error\", \"always\"],\n\t\t\t\t\"no-console\": [\"error\", { allow: [\"warn\", \"error\", \"info\", \"trace\"] }],\n\t\t\t\t\"no-const-assign\": \"error\",\n\t\t\t\t\"no-constant-condition\": \"warn\",\n\t\t\t\t\"no-constructor-return\": \"error\",\n\t\t\t\t\"no-control-regex\": \"error\",\n\t\t\t\t\"no-debugger\": \"error\",\n\t\t\t\t\"no-delete-var\": \"error\",\n\t\t\t\t\"no-dupe-args\": \"error\",\n\t\t\t\t\"no-dupe-class-members\": \"error\",\n\t\t\t\t\"no-dupe-keys\": \"error\",\n\t\t\t\t\"no-duplicate-case\": \"error\",\n\t\t\t\t\"no-else-return\": [\"error\", { allowElseIf: false }],\n\t\t\t\t\"no-empty\": [\"error\", { allowEmptyCatch: true }],\n\t\t\t\t\"no-empty-character-class\": \"error\",\n\t\t\t\t\"no-empty-pattern\": \"error\",\n\t\t\t\t\"no-eval\": [\"error\", { allowIndirect: true }],\n\t\t\t\t\"no-ex-assign\": \"error\",\n\t\t\t\t\"no-extend-native\": \"error\",\n\t\t\t\t\"no-extra-bind\": \"error\",\n\t\t\t\t\"no-extra-boolean-cast\": \"error\",\n\t\t\t\t\"no-fallthrough\": \"error\",\n\t\t\t\t\"no-func-assign\": \"error\",\n\t\t\t\t\"no-global-assign\": \"error\",\n\t\t\t\t\"no-implicit-coercion\": \"warn\",\n\t\t\t\t\"no-implied-eval\": \"error\",\n\t\t\t\t\"no-import-assign\": \"error\",\n\t\t\t\t\"no-invalid-regexp\": \"error\",\n\t\t\t\t\"no-irregular-whitespace\": \"error\",\n\t\t\t\t\"no-iterator\": \"error\",\n\t\t\t\t\"no-labels\": [\"error\", { allowLoop: false, allowSwitch: false }],\n\t\t\t\t\"no-lone-blocks\": \"error\",\n\t\t\t\t\"no-loop-func\": \"error\",\n\t\t\t\t\"no-loss-of-precision\": \"error\",\n\t\t\t\t\"no-misleading-character-class\": \"error\",\n\t\t\t\t\"no-multi-str\": \"error\",\n\t\t\t\t\"no-new\": \"error\",\n\t\t\t\t\"no-new-func\": \"error\",\n\t\t\t\t\"no-new-native-nonconstructor\": \"error\",\n\t\t\t\t\"no-new-wrappers\": \"error\",\n\t\t\t\t\"no-obj-calls\": \"error\",\n\t\t\t\t\"no-octal\": \"error\",\n\t\t\t\t\"no-octal-escape\": \"error\",\n\t\t\t\t\"no-param-reassign\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tignorePropertyModificationsFor: [\n\t\t\t\t\t\t\t\"acc\", // for reduce accumulators\n\t\t\t\t\t\t\t\"accumulator\", // for reduce accumulators\n\t\t\t\t\t\t\t\"e\", // for e.returnvalue\n\t\t\t\t\t\t\t\"ctx\", // for Koa routing\n\t\t\t\t\t\t\t\"context\", // for Koa routing\n\t\t\t\t\t\t\t\"req\", // for Express requests\n\t\t\t\t\t\t\t\"request\", // for Express requests\n\t\t\t\t\t\t\t\"res\", // for Express responses\n\t\t\t\t\t\t\t\"response\", // for Express responses\n\t\t\t\t\t\t\t\"$scope\", // for Angular 1 scopes\n\t\t\t\t\t\t\t\"staticContext\", // for ReactRouter context\n\t\t\t\t\t\t],\n\t\t\t\t\t\tprops: true,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"no-proto\": \"error\",\n\t\t\t\t\"no-prototype-builtins\": \"error\",\n\t\t\t\t\"no-redeclare\": [\"error\", { builtinGlobals: false }],\n\t\t\t\t\"no-regex-spaces\": \"error\",\n\t\t\t\t\"no-restricted-exports\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\trestrictedNamedExports: [\n\t\t\t\t\t\t\t\"default\", // use `export default` to provide a default export\n\t\t\t\t\t\t\t\"then\", // this will cause tons of confusion when your module is dynamically `import()`ed, and will break in most node ESM versions\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"no-restricted-globals\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage:\n\t\t\t\t\t\t\t\"Use Number.isFinite instead https://github.com/airbnb/javascript#standard-library--isfinite\",\n\t\t\t\t\t\tname: \"isFinite\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage:\n\t\t\t\t\t\t\t\"Use Number.isNaN instead https://github.com/airbnb/javascript#standard-library--isnan\",\n\t\t\t\t\t\tname: \"isNaN\",\n\t\t\t\t\t},\n\t\t\t\t\t{ message: \"Use `globalThis` instead.\", name: \"global\" },\n\t\t\t\t\t{ message: \"Use `globalThis` instead.\", name: \"self\" },\n\t\t\t\t],\n\t\t\t\t\"no-restricted-imports\": [\"off\", { paths: [], patterns: [] }],\n\t\t\t\t\"no-restricted-properties\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"arguments.callee is deprecated\",\n\t\t\t\t\t\tobject: \"arguments\",\n\t\t\t\t\t\tproperty: \"callee\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isFinite instead\",\n\t\t\t\t\t\tobject: \"global\",\n\t\t\t\t\t\tproperty: \"isFinite\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isFinite instead\",\n\t\t\t\t\t\tobject: \"self\",\n\t\t\t\t\t\tproperty: \"isFinite\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isFinite instead\",\n\t\t\t\t\t\tobject: \"window\",\n\t\t\t\t\t\tproperty: \"isFinite\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isNaN instead\",\n\t\t\t\t\t\tobject: \"global\",\n\t\t\t\t\t\tproperty: \"isNaN\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isNaN instead\",\n\t\t\t\t\t\tobject: \"self\",\n\t\t\t\t\t\tproperty: \"isNaN\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isNaN instead\",\n\t\t\t\t\t\tobject: \"window\",\n\t\t\t\t\t\tproperty: \"isNaN\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Use the exponentiation operator (**) instead.\",\n\t\t\t\t\t\tobject: \"Math\",\n\t\t\t\t\t\tproperty: \"pow\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.\",\n\t\t\t\t\t\tproperty: \"__proto__\",\n\t\t\t\t\t},\n\t\t\t\t\t{ message: \"Use `Object.defineProperty` instead.\", property: \"__defineGetter__\" },\n\t\t\t\t\t{ message: \"Use `Object.defineProperty` instead.\", property: \"__defineSetter__\" },\n\t\t\t\t\t{ message: \"Use `Object.getOwnPropertyDescriptor` instead.\", property: \"__lookupGetter__\" },\n\t\t\t\t\t{ message: \"Use `Object.getOwnPropertyDescriptor` instead.\", property: \"__lookupSetter__\" },\n\t\t\t\t],\n\t\t\t\t\"no-restricted-syntax\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t\"ForInStatement\",\n\t\t\t\t\t\"LabeledStatement\",\n\t\t\t\t\t\"WithStatement\",\n\t\t\t\t\t\"TSEnumDeclaration[const=true]\",\n\t\t\t\t\t\"TSExportAssignment\",\n\t\t\t\t],\n\t\t\t\t\"no-return-assign\": [\"error\", \"except-parens\"],\n\t\t\t\t\"no-script-url\": \"error\",\n\t\t\t\t\"no-self-assign\": [\"error\", { props: true }],\n\t\t\t\t\"no-self-compare\": \"error\",\n\t\t\t\t\"no-sequences\": \"error\",\n\t\t\t\t\"no-shadow-restricted-names\": \"error\",\n\t\t\t\t\"no-sparse-arrays\": \"error\",\n\t\t\t\t\"no-template-curly-in-string\": \"error\",\n\t\t\t\t\"no-this-before-super\": \"error\",\n\t\t\t\t\"no-throw-literal\": \"error\",\n\t\t\t\t\"no-undef\": \"error\",\n\t\t\t\t\"no-undef-init\": \"error\",\n\t\t\t\t\"no-unexpected-multiline\": \"error\",\n\t\t\t\t\"no-unmodified-loop-condition\": \"error\",\n\t\t\t\t\"no-unneeded-ternary\": [\"warn\", { defaultAssignment: false }],\n\t\t\t\t\"no-unreachable\": \"error\",\n\t\t\t\t\"no-unreachable-loop\": \"error\",\n\t\t\t\t\"no-unsafe-finally\": \"error\",\n\t\t\t\t\"no-unsafe-negation\": \"error\",\n\t\t\t\t\"no-unused-expressions\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tallowShortCircuit: true,\n\t\t\t\t\t\tallowTaggedTemplates: true,\n\t\t\t\t\t\tallowTernary: true,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"no-unused-vars\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\targs: \"all\",\n\t\t\t\t\t\targsIgnorePattern: \"^_\",\n\t\t\t\t\t\tcaughtErrors: \"all\",\n\t\t\t\t\t\tdestructuredArrayIgnorePattern: \"^_\",\n\t\t\t\t\t\treportUsedIgnorePattern: true,\n\t\t\t\t\t\tvars: \"all\",\n\t\t\t\t\t\tvarsIgnorePattern: \"[iI]gnored\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"no-useless-backreference\": \"error\",\n\t\t\t\t\"no-useless-call\": \"error\",\n\t\t\t\t\"no-useless-catch\": \"error\",\n\t\t\t\t\"no-useless-computed-key\": \"error\",\n\t\t\t\t\"no-useless-concat\": \"error\",\n\t\t\t\t\"no-useless-constructor\": \"error\",\n\t\t\t\t\"no-useless-rename\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{ ignoreDestructuring: false, ignoreExport: false, ignoreImport: false },\n\t\t\t\t],\n\t\t\t\t\"no-useless-return\": \"error\",\n\t\t\t\t\"no-var\": \"error\",\n\t\t\t\t\"no-with\": \"error\",\n\t\t\t\t\"object-shorthand\": [\"error\", \"always\", { avoidQuotes: true, ignoreConstructors: false }],\n\t\t\t\t\"one-var\": [\"error\", { initialized: \"never\" }],\n\t\t\t\t\"operator-assignment\": \"warn\",\n\t\t\t\t\"prefer-arrow-callback\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tallowNamedFunctions: false,\n\t\t\t\t\t\tallowUnboundThis: true,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"prefer-const\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tdestructuring: \"all\",\n\t\t\t\t\t\tignoreReadBeforeAssign: true,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"prefer-exponentiation-operator\": \"error\",\n\t\t\t\t\"prefer-object-has-own\": \"error\",\n\t\t\t\t\"prefer-object-spread\": \"warn\",\n\t\t\t\t\"prefer-promise-reject-errors\": \"error\",\n\t\t\t\t\"prefer-regex-literals\": [\"error\", { disallowRedundantWrapping: true }],\n\t\t\t\t\"prefer-rest-params\": \"error\",\n\t\t\t\t\"prefer-spread\": \"error\",\n\t\t\t\t\"prefer-template\": \"error\",\n\t\t\t\tradix: \"error\",\n\t\t\t\t\"symbol-description\": \"error\",\n\t\t\t\t\"unicode-bom\": [\"error\", \"never\"],\n\t\t\t\t\"use-isnan\": [\"error\", { enforceForIndexOf: true, enforceForSwitchCase: true }],\n\t\t\t\t\"valid-typeof\": [\"error\", { requireStringLiterals: true }],\n\t\t\t\t\"vars-on-top\": \"error\",\n\t\t\t\tyoda: [\"error\", \"never\"],\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { javascript };\n","import type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault } from \"@/utils\";\n\nconst jsdoc = async (\n\toptions: ExtractOptions<OptionsConfig[\"jsdoc\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, stylistic = true } = options;\n\n\tconst eslintPluginJsdoc = await interopDefault(import(\"eslint-plugin-jsdoc\"));\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/jsdoc/rules\",\n\n\t\t\tplugins: {\n\t\t\t\tjsdoc: eslintPluginJsdoc,\n\t\t\t},\n\n\t\t\trules: {\n\t\t\t\t\"jsdoc/check-access\": \"warn\",\n\t\t\t\t\"jsdoc/check-param-names\": \"warn\",\n\t\t\t\t\"jsdoc/check-property-names\": \"warn\",\n\t\t\t\t\"jsdoc/check-types\": \"warn\",\n\t\t\t\t\"jsdoc/empty-tags\": \"warn\",\n\t\t\t\t\"jsdoc/implements-on-classes\": \"warn\",\n\t\t\t\t\"jsdoc/no-defaults\": \"warn\",\n\t\t\t\t\"jsdoc/no-multi-asterisks\": \"warn\",\n\t\t\t\t\"jsdoc/require-description\": [\"warn\", { descriptionStyle: \"any\" }],\n\t\t\t\t\"jsdoc/require-param-name\": \"warn\",\n\t\t\t\t\"jsdoc/require-property\": \"warn\",\n\t\t\t\t\"jsdoc/require-property-description\": \"warn\",\n\t\t\t\t\"jsdoc/require-property-name\": \"warn\",\n\t\t\t\t\"jsdoc/require-returns-check\": \"warn\",\n\t\t\t\t\"jsdoc/require-returns-description\": \"warn\",\n\t\t\t\t\"jsdoc/require-yields-check\": \"warn\",\n\n\t\t\t\t...(stylistic && {\n\t\t\t\t\t\"jsdoc/check-alignment\": \"warn\",\n\t\t\t\t\t\"jsdoc/multiline-blocks\": \"warn\",\n\t\t\t\t\t\"jsdoc/require-description\": [\"warn\", { descriptionStyle: \"tag\" }],\n\t\t\t\t}),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { jsdoc };\n","import { GLOB_JSON, GLOB_JSON5, GLOB_JSONC } from \"@/globs\";\nimport type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault } from \"@/utils\";\n\nconst jsonc = async (\n\toptions: ExtractOptions<OptionsConfig[\"jsonc\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { files = [GLOB_JSON, GLOB_JSON5, GLOB_JSONC], overrides, stylistic = true } = options;\n\n\tconst [eslintPluginJsonc, jsoncParser] = await Promise.all([\n\t\tinteropDefault(import(\"eslint-plugin-jsonc\")),\n\t\tinteropDefault(import(\"jsonc-eslint-parser\")),\n\t] as const);\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/jsonc/setup\",\n\n\t\t\tplugins: {\n\t\t\t\tjsonc: eslintPluginJsonc,\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tlanguageOptions: {\n\t\t\t\tparser: jsoncParser,\n\t\t\t},\n\n\t\t\tname: \"zayne/jsonc/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"jsonc/no-bigint-literals\": \"error\",\n\t\t\t\t\"jsonc/no-binary-expression\": \"error\",\n\t\t\t\t\"jsonc/no-binary-numeric-literals\": \"error\",\n\t\t\t\t\"jsonc/no-dupe-keys\": \"error\",\n\t\t\t\t\"jsonc/no-escape-sequence-in-identifier\": \"error\",\n\t\t\t\t\"jsonc/no-floating-decimal\": \"error\",\n\t\t\t\t\"jsonc/no-hexadecimal-numeric-literals\": \"error\",\n\t\t\t\t\"jsonc/no-infinity\": \"error\",\n\t\t\t\t\"jsonc/no-multi-str\": \"error\",\n\t\t\t\t\"jsonc/no-nan\": \"error\",\n\t\t\t\t\"jsonc/no-number-props\": \"error\",\n\t\t\t\t\"jsonc/no-numeric-separators\": \"error\",\n\t\t\t\t\"jsonc/no-octal\": \"error\",\n\t\t\t\t\"jsonc/no-octal-escape\": \"error\",\n\t\t\t\t\"jsonc/no-octal-numeric-literals\": \"error\",\n\t\t\t\t\"jsonc/no-parenthesized\": \"error\",\n\t\t\t\t\"jsonc/no-plus-sign\": \"error\",\n\t\t\t\t\"jsonc/no-regexp-literals\": \"error\",\n\t\t\t\t\"jsonc/no-sparse-arrays\": \"error\",\n\t\t\t\t\"jsonc/no-template-literals\": \"error\",\n\t\t\t\t\"jsonc/no-undefined-value\": \"error\",\n\t\t\t\t\"jsonc/no-unicode-codepoint-escapes\": \"error\",\n\t\t\t\t\"jsonc/no-useless-escape\": \"error\",\n\t\t\t\t\"jsonc/space-unary-ops\": \"error\",\n\t\t\t\t\"jsonc/valid-json-number\": \"error\",\n\t\t\t\t\"jsonc/vue-custom-block/no-parsing-error\": \"error\",\n\n\t\t\t\t...(stylistic && {\n\t\t\t\t\t\"jsonc/array-bracket-spacing\": [\"error\", \"never\"],\n\t\t\t\t\t\"jsonc/comma-dangle\": [\"error\", \"never\"],\n\t\t\t\t\t\"jsonc/comma-style\": [\"error\", \"last\"],\n\t\t\t\t\t\"jsonc/key-spacing\": [\"error\", { afterColon: true, beforeColon: false }],\n\t\t\t\t\t\"jsonc/object-curly-newline\": [\"error\", { consistent: true, multiline: true }],\n\t\t\t\t\t\"jsonc/object-curly-spacing\": [\"error\", \"always\"],\n\t\t\t\t\t\"jsonc/object-property-newline\": [\"error\", { allowMultiplePropertiesPerLine: true }],\n\t\t\t\t\t\"jsonc/quote-props\": \"error\",\n\t\t\t\t\t\"jsonc/quotes\": \"error\",\n\t\t\t\t}),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { jsonc };\n","import type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault, renameRules } from \"@/utils\";\n\nexport const node = async (\n\toptions: ExtractOptions<OptionsConfig[\"node\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, security = false, type = \"app\" } = options;\n\n\tconst [eslintPluginNode, eslintPluginSecurity] = await Promise.all([\n\t\tinteropDefault(import(\"eslint-plugin-n\")),\n\t\t...(security ? [interopDefault(import(\"eslint-plugin-security\"))] : []),\n\t]);\n\n\tconst config: TypedFlatConfigItem[] = [\n\t\t{\n\t\t\tname: \"zayne/node/recommended\",\n\n\t\t\tplugins: {\n\t\t\t\tnode: eslintPluginNode,\n\t\t\t},\n\n\t\t\trules: renameRules(eslintPluginNode.configs[\"flat/recommended-module\"].rules, {\n\t\t\t\tn: \"node\",\n\t\t\t}),\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/node/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"node/no-deprecated-api\": \"error\",\n\t\t\t\t\"node/no-exports-assign\": \"error\",\n\t\t\t\t\"node/no-extraneous-import\": \"off\", // eslint-plugin-import-x handles this\n\t\t\t\t\"node/no-missing-import\": \"off\",\n\t\t\t\t\"node/no-path-concat\": \"error\",\n\t\t\t\t\"node/no-unpublished-import\": \"off\",\n\t\t\t\t\"node/process-exit-as-throw\": \"error\",\n\n\t\t\t\t...(type === \"lib-strict\"\n\t\t\t\t\t? {\n\t\t\t\t\t\t\t\"node/no-unsupported-features/es-syntax\": \"error\",\n\t\t\t\t\t\t\t\"node/no-unsupported-features/node-builtins\": \"error\",\n\t\t\t\t\t\t}\n\t\t\t\t\t: {\n\t\t\t\t\t\t\t\"node/no-unsupported-features/es-syntax\": \"off\",\n\t\t\t\t\t\t\t\"node/no-unsupported-features/node-builtins\": \"off\",\n\t\t\t\t\t\t}),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n\n\tif (security && eslintPluginSecurity) {\n\t\tconfig.push({\n\t\t\tname: \"zayne/node/security/recommended\",\n\n\t\t\tplugins: {\n\t\t\t\tsecurity: eslintPluginSecurity,\n\t\t\t},\n\n\t\t\trules: eslintPluginSecurity.configs.recommended.rules,\n\t\t});\n\t}\n\n\treturn config;\n};\n","import type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault } from \"@/utils\";\n\nconst perfectionist = async (\n\toptions: ExtractOptions<OptionsConfig[\"perfectionist\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides } = options;\n\n\tconst eslintPluginPerfectionist = await interopDefault(import(\"eslint-plugin-perfectionist\"));\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/perfectionist/rules\",\n\n\t\t\tplugins: {\n\t\t\t\tperfectionist: eslintPluginPerfectionist,\n\t\t\t},\n\n\t\t\trules: {\n\t\t\t\t\"perfectionist/sort-array-includes\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-classes\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-interfaces\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-intersection-types\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\tgroups: [\n\t\t\t\t\t\t\t\"conditional\",\n\t\t\t\t\t\t\t\"literal\",\n\t\t\t\t\t\t\t\"import\",\n\t\t\t\t\t\t\t\"intersection\",\n\t\t\t\t\t\t\t\"keyword\",\n\t\t\t\t\t\t\t\"tuple\",\n\t\t\t\t\t\t\t\"named\",\n\t\t\t\t\t\t\t\"object\",\n\t\t\t\t\t\t\t\"function\",\n\t\t\t\t\t\t\t\"operator\",\n\t\t\t\t\t\t\t\"union\",\n\t\t\t\t\t\t\t\"nullish\",\n\t\t\t\t\t\t],\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-maps\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-object-types\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-objects\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-switch-case\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-union-types\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\tgroups: [\n\t\t\t\t\t\t\t\"conditional\",\n\t\t\t\t\t\t\t\"literal\",\n\t\t\t\t\t\t\t\"import\",\n\t\t\t\t\t\t\t\"intersection\",\n\t\t\t\t\t\t\t\"keyword\",\n\t\t\t\t\t\t\t\"tuple\",\n\t\t\t\t\t\t\t\"named\",\n\t\t\t\t\t\t\t\"object\",\n\t\t\t\t\t\t\t\"function\",\n\t\t\t\t\t\t\t\"operator\",\n\t\t\t\t\t\t\t\"union\",\n\t\t\t\t\t\t\t\"nullish\",\n\t\t\t\t\t\t],\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"perfectionist/sort-variable-declarations\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t// \"perfectionist/sort-svelte-attributes\": [\n\t\t\t\t// \t\"warn\",\n\t\t\t\t// \t{\n\t\t\t\t// \t\torder: \"asc\",\n\t\t\t\t// \t\ttype: \"alphabetical\",\n\t\t\t\t// \t},\n\t\t\t\t// ],\n\t\t\t\t// \"perfectionist/sort-astro-attributes\": [\n\t\t\t\t// \t\"warn\",\n\t\t\t\t// \t{\n\t\t\t\t// \t\torder: \"asc\",\n\t\t\t\t// \t\ttype: \"alphabetical\",\n\t\t\t\t// \t},\n\t\t\t\t// ],\n\t\t\t\t// \"perfectionist/sort-vue-attributes\": [\n\t\t\t\t// \t\"warn\",\n\t\t\t\t// \t{\n\t\t\t\t// \t\torder: \"asc\",\n\t\t\t\t// \t\ttype: \"alphabetical\",\n\t\t\t\t// \t},\n\t\t\t\t// ],\n\t\t\t\t// \"perfectionist/sort-jsx-props\": [\n\t\t\t\t// \t\"warn\",\n\t\t\t\t// \t{\n\t\t\t\t// \t\t// ignorePattern: [\"src\"],\n\t\t\t\t// \t\torder: \"asc\",\n\t\t\t\t// \t\ttype: \"alphabetical\",\n\t\t\t\t// \t},\n\t\t\t\t// ],\n\t\t\t},\n\n\t\t\t...overrides,\n\t\t},\n\t];\n};\n\nexport { perfectionist };\n","import type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault } from \"@/utils\";\n\nexport async function pnpm(\n\toptions: ExtractOptions<OptionsConfig[\"pnpm\"]> = {}\n): Promise<TypedFlatConfigItem[]> {\n\tconst { overrides } = options;\n\n\tconst [eslintPluginPnpm, yamlParser, jsoncParser] = await Promise.all([\n\t\tinteropDefault(import(\"eslint-plugin-pnpm\")),\n\t\tinteropDefault(import(\"yaml-eslint-parser\")),\n\t\tinteropDefault(import(\"jsonc-eslint-parser\")),\n\t]);\n\n\treturn [\n\t\t{\n\t\t\tfiles: [\"package.json\", \"**/package.json\"],\n\n\t\t\tlanguageOptions: {\n\t\t\t\tparser: jsoncParser,\n\t\t\t},\n\n\t\t\tname: \"zayne/pnpm/package-json\",\n\n\t\t\tplugins: {\n\t\t\t\tpnpm: eslintPluginPnpm,\n\t\t\t},\n\t\t\trules: {\n\t\t\t\t\"pnpm/json-enforce-catalog\": \"error\",\n\t\t\t\t\"pnpm/json-prefer-workspace-settings\": \"error\",\n\t\t\t\t\"pnpm/json-valid-catalog\": \"error\",\n\n\t\t\t\t...overrides?.json,\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tfiles: [\"pnpm-workspace.yaml\"],\n\n\t\t\tlanguageOptions: {\n\t\t\t\tparser: yamlParser,\n\t\t\t},\n\n\t\t\tname: \"zayne/pnpm/pnpm-workspace-yaml\",\n\n\t\t\tplugins: {\n\t\t\t\tpnpm: eslintPluginPnpm,\n\t\t\t},\n\t\t\trules: {\n\t\t\t\t\"pnpm/yaml-no-duplicate-catalog-item\": \"error\",\n\t\t\t\t\"pnpm/yaml-no-unused-catalog-item\": \"error\",\n\n\t\t\t\t...overrides?.yaml,\n\t\t\t},\n\t\t},\n\t];\n}\n","import { defineEnum } from \"@zayne-labs/toolkit-type-helpers\";\n\nexport const defaultPluginRenameMap = defineEnum({\n\t\"@eslint-react/debug\": \"react-debug\",\n\t\"@eslint-react/dom\": \"react-dom\",\n\t\"@eslint-react/hooks-extra\": \"react-hooks-extra\",\n\t\"@eslint-react/naming-convention\": \"react-naming-convention\",\n\t\"@eslint-react/web-api\": \"react-web-api\",\n\t/* eslint-disable perfectionist/sort-objects -- @eslint-react has to be below the rest to avoid plugin rename issues */\n\t\"@eslint-react\": \"react\",\n\t/* eslint-enable perfectionist/sort-objects -- @eslint-react has to be below the rest to avoid plugin rename issues */\n\n\t\"@next/next\": \"nextjs-next\",\n\n\t\"@stylistic\": \"stylistic\",\n\n\t\"@tanstack/query\": \"tanstack-query\",\n\n\t\"@typescript-eslint\": \"ts-eslint\",\n\n\t\"import-x\": \"import\",\n\n\tn: \"node\",\n});\n","import { defaultPluginRenameMap } from \"@/constants\";\nimport { GLOB_SRC } from \"@/globs\";\nimport type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"@/types\";\nimport { ensurePackages, interopDefault, renamePlugins, renameRules } from \"@/utils\";\nimport { fixupPluginRules } from \"@eslint/compat\";\nimport { isPackageExists } from \"local-pkg\";\n\n// react refresh\nconst ReactRefreshAllowConstantExportPackages = [\"vite\"];\nconst RemixPackages = [\"@remix-run/node\", \"@remix-run/react\", \"@remix-run/serve\", \"@remix-run/dev\"];\nconst NextJsPackages = [\"next\"];\n\nconst isAllowConstantExport = ReactRefreshAllowConstantExportPackages.some((i) => isPackageExists(i));\nconst isUsingRemix = RemixPackages.some((i) => isPackageExists(i));\nconst isUsingNext = NextJsPackages.some((i) => isPackageExists(i));\n\nconst react = async (\n\toptions: ExtractOptions<OptionsConfig[\"react\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst {\n\t\tcompiler = false,\n\t\tfiles = [GLOB_SRC],\n\t\tnextjs = isUsingNext,\n\t\toverrides,\n\t\trefresh = true,\n\t\ttypescript = true,\n\t} = options;\n\n\tawait ensurePackages([\n\t\t\"@eslint-react/eslint-plugin\",\n\t\t\"eslint-plugin-react-hooks\",\n\t\t...(refresh ? [\"eslint-plugin-react-refresh\"] : []),\n\t\t...(nextjs ? [\"@next/eslint-plugin-next\"] : []),\n\t]);\n\n\tconst [eslintPluginReact, eslintReactHooks, eslintPluginReactRefresh] = await Promise.all([\n\t\tinteropDefault(import(\"@eslint-react/eslint-plugin\")),\n\t\tinteropDefault(import(\"eslint-plugin-react-hooks\")),\n\t\t...(refresh ? [interopDefault(import(\"eslint-plugin-react-refresh\"))] : []),\n\t]);\n\n\tconst eslintPluginNextjs = nextjs && (await interopDefault(import(\"@next/eslint-plugin-next\")));\n\n\t// prettier-ignore\n\tconst recommendedReactConfig = eslintPluginReact.configs[typescript ? \"recommended-type-checked\" : \"recommended\"];\n\n\tconst config: TypedFlatConfigItem[] = [\n\t\t{\n\t\t\tname: \"zayne/react/setup\",\n\n\t\t\tplugins: {\n\t\t\t\t...renamePlugins(recommendedReactConfig.plugins, defaultPluginRenameMap),\n\t\t\t\t\"react-hooks\": eslintReactHooks,\n\t\t\t},\n\n\t\t\tsettings: recommendedReactConfig.settings,\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tlanguageOptions: {\n\t\t\t\tparserOptions: {\n\t\t\t\t\tecmaFeatures: {\n\t\t\t\t\t\tjsx: true,\n\t\t\t\t\t},\n\n\t\t\t\t\tsourceType: \"module\",\n\n\t\t\t\t\t// eslint-disable-next-line unicorn/no-await-expression-member -- ignore for now\n\t\t\t\t\t...(typescript && { parser: (await interopDefault(import(\"typescript-eslint\"))).parser }),\n\t\t\t\t},\n\t\t\t},\n\n\t\t\tname: \"zayne/react/setup-processor\",\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/react/recommended\",\n\n\t\t\trules: renameRules(recommendedReactConfig.rules, defaultPluginRenameMap),\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/react/rules\",\n\n\t\t\trules: {\n\t\t\t\t// Hook Extra rules\n\t\t\t\t\"react-hooks-extra/ensure-custom-hooks-using-other-hooks\": \"error\",\n\t\t\t\t\"react-hooks-extra/no-unnecessary-use-callback\": \"warn\",\n\t\t\t\t\"react-hooks-extra/no-unnecessary-use-memo\": \"warn\",\n\t\t\t\t\"react-hooks-extra/prefer-use-state-lazy-initialization\": \"error\",\n\n\t\t\t\t// Hook rules\n\t\t\t\t\"react-hooks/exhaustive-deps\": \"warn\",\n\t\t\t\t\"react-hooks/rules-of-hooks\": \"error\",\n\n\t\t\t\t// Naming convention rules\n\t\t\t\t\"react-naming-convention/component-name\": \"warn\",\n\t\t\t\t\"react-naming-convention/use-state\": \"off\",\n\n\t\t\t\t// Regular React rules\n\t\t\t\t\"react/avoid-shorthand-boolean\": \"error\",\n\t\t\t\t\"react/function-component-definition\": \"off\",\n\t\t\t\t\"react/no-array-index-key\": \"error\",\n\t\t\t\t\"react/no-children-count\": \"off\",\n\t\t\t\t\"react/no-children-only\": \"off\",\n\t\t\t\t\"react/no-children-prop\": \"error\",\n\t\t\t\t\"react/no-clone-element\": \"off\",\n\t\t\t\t\"react/no-complex-conditional-rendering\": \"warn\",\n\t\t\t\t\"react/no-missing-component-display-name\": \"error\",\n\t\t\t\t\"react/no-useless-fragment\": \"error\",\n\t\t\t\t\"react/prefer-destructuring-assignment\": \"error\",\n\t\t\t\t\"react/prefer-read-only-props\": \"off\",\n\t\t\t\t\"react/prefer-shorthand-fragment\": \"error\",\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n\n\tif (refresh && eslintPluginReactRefresh) {\n\t\tconfig.push({\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/react/refresh\",\n\n\t\t\tplugins: {\n\t\t\t\t\"react-refresh\": eslintPluginReactRefresh,\n\t\t\t},\n\n\t\t\trules: {\n\t\t\t\t\"react-refresh/only-export-components\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\tallowConstantExport: isAllowConstantExport,\n\t\t\t\t\t\tallowExportNames: [\n\t\t\t\t\t\t\t...(isUsingNext\n\t\t\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\t\t\t\"dynamic\",\n\t\t\t\t\t\t\t\t\t\t\"dynamicParams\",\n\t\t\t\t\t\t\t\t\t\t\"revalidate\",\n\t\t\t\t\t\t\t\t\t\t\"fetchCache\",\n\t\t\t\t\t\t\t\t\t\t\"runtime\",\n\t\t\t\t\t\t\t\t\t\t\"preferredRegion\",\n\t\t\t\t\t\t\t\t\t\t\"maxDuration\",\n\t\t\t\t\t\t\t\t\t\t\"config\",\n\t\t\t\t\t\t\t\t\t\t\"generateStaticParams\",\n\t\t\t\t\t\t\t\t\t\t\"metadata\",\n\t\t\t\t\t\t\t\t\t\t\"generateMetadata\",\n\t\t\t\t\t\t\t\t\t\t\"viewport\",\n\t\t\t\t\t\t\t\t\t\t\"generateViewport\",\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t: []),\n\t\t\t\t\t\t\t...(isUsingRemix ? [\"meta\", \"links\", \"headers\", \"loader\", \"action\"] : []),\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t});\n\t}\n\n\tif (compiler) {\n\t\tconfig.push({\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/react/compiler\",\n\n\t\t\trules: {\n\t\t\t\t\"react-hooks/react-compiler\": \"error\",\n\t\t\t},\n\t\t});\n\t}\n\n\tif (nextjs && eslintPluginNextjs) {\n\t\tconfig.push({\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/react/nextjs\",\n\n\t\t\tplugins: {\n\t\t\t\t\"nextjs-next\": fixupPluginRules(eslintPluginNextjs),\n\t\t\t},\n\n\t\t\trules: renameRules(\n\t\t\t\t// eslint-disable-next-line ts-eslint/no-unsafe-argument -- missing types\n\t\t\t\t{\n\t\t\t\t\t// @ts-expect-error -- missing types\n\t\t\t\t\t// eslint-disable-next-line ts-eslint/no-unsafe-member-access -- missing types\n\t\t\t\t\t...eslintPluginNextjs.configs?.recommended?.rules,\n\n\t\t\t\t\t// @ts-expect-error -- missing types\n\t\t\t\t\t// eslint-disable-next-line ts-eslint/no-unsafe-member-access -- missing types\n\t\t\t\t\t...eslintPluginNextjs.configs?.[\"core-web-vitals\"]?.rules,\n\t\t\t\t},\n\t\t\t\tdefaultPluginRenameMap\n\t\t\t),\n\t\t});\n\t}\n\n\treturn config;\n};\n\nexport { react };\n","import { GLOB_SRC } from \"../globs\";\nimport type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"../types\";\nimport { ensurePackages, interopDefault } from \"../utils\";\n\nconst solid = async (\n\toptions: ExtractOptions<OptionsConfig[\"solid\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { files = [GLOB_SRC], overrides, typescript = true } = options;\n\n\tawait ensurePackages([\"eslint-plugin-solid\"]);\n\n\tconst eslintPluginSolid = await interopDefault(import(\"eslint-plugin-solid\"));\n\n\tconst recommendedSolidConfig =\n\t\teslintPluginSolid.configs[typescript ? \"flat/typescript\" : \"flat/recommended\"];\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/solid/setup\",\n\n\t\t\tplugins: {\n\t\t\t\tsolid: eslintPluginSolid,\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/solid/recommended\",\n\n\t\t\trules: recommendedSolidConfig.rules,\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/solid/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"solid/no-innerhtml\": [\"error\", { allowStatic: true }],\n\t\t\t\t\"solid/style-prop\": [\"error\", { styleProps: [\"style\", \"css\"] }],\n\t\t\t},\n\n\t\t\t...overrides,\n\t\t},\n\t];\n};\n\nexport { solid };\n","import type { TypedFlatConfigItem } from \"@/types\";\n\n/**\n * @description - Sort package.json\n *\n * Requires `jsonc` config\n */\nexport const sortPackageJson = (): TypedFlatConfigItem[] => [\n\t{\n\t\tfiles: [\"**/package.json\"],\n\n\t\tname: \"zayne/sort/package.json\",\n\n\t\trules: {\n\t\t\t\"jsonc/sort-array-values\": [\n\t\t\t\t\"error\",\n\t\t\t\t{\n\t\t\t\t\torder: { type: \"asc\" },\n\t\t\t\t\tpathPattern: \"^files$\",\n\t\t\t\t},\n\t\t\t],\n\t\t\t\"jsonc/sort-keys\": [\n\t\t\t\t\"error\",\n\t\t\t\t{\n\t\t\t\t\torder: [\n\t\t\t\t\t\t\"publisher\",\n\t\t\t\t\t\t\"name\",\n\t\t\t\t\t\t\"displayName\",\n\t\t\t\t\t\t\"type\",\n\t\t\t\t\t\t\"version\",\n\t\t\t\t\t\t\"private\",\n\t\t\t\t\t\t\"packageManager\",\n\t\t\t\t\t\t\"description\",\n\t\t\t\t\t\t\"author\",\n\t\t\t\t\t\t\"contributors\",\n\t\t\t\t\t\t\"license\",\n\t\t\t\t\t\t\"funding\",\n\t\t\t\t\t\t\"homepage\",\n\t\t\t\t\t\t\"repository\",\n\t\t\t\t\t\t\"bugs\",\n\t\t\t\t\t\t\"keywords\",\n\t\t\t\t\t\t\"categories\",\n\t\t\t\t\t\t\"sideEffects\",\n\t\t\t\t\t\t\"exports\",\n\t\t\t\t\t\t\"main\",\n\t\t\t\t\t\t\"module\",\n\t\t\t\t\t\t\"unpkg\",\n\t\t\t\t\t\t\"jsdelivr\",\n\t\t\t\t\t\t\"types\",\n\t\t\t\t\t\t\"typesVersions\",\n\t\t\t\t\t\t\"bin\",\n\t\t\t\t\t\t\"icon\",\n\t\t\t\t\t\t\"files\",\n\t\t\t\t\t\t\"engines\",\n\t\t\t\t\t\t\"activationEvents\",\n\t\t\t\t\t\t\"contributes\",\n\t\t\t\t\t\t\"scripts\",\n\t\t\t\t\t\t\"peerDependencies\",\n\t\t\t\t\t\t\"peerDependenciesMeta\",\n\t\t\t\t\t\t\"dependencies\",\n\t\t\t\t\t\t\"optionalDependencies\",\n\t\t\t\t\t\t\"devDependencies\",\n\t\t\t\t\t\t\"pnpm\",\n\t\t\t\t\t\t\"overrides\",\n\t\t\t\t\t\t\"resolutions\",\n\t\t\t\t\t\t\"husky\",\n\t\t\t\t\t\t\"simple-git-hooks\",\n\t\t\t\t\t\t\"lint-staged\",\n\t\t\t\t\t\t\"eslintConfig\",\n\t\t\t\t\t],\n\t\t\t\t\tpathPattern: \"^$\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: { type: \"asc\" },\n\t\t\t\t\tpathPattern: \"^(?:dev|peer|optional|bundled)?[Dd]ependencies(Meta)?$\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: { type: \"asc\" },\n\t\t\t\t\tpathPattern: \"scripts\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: { type: \"asc\" },\n\t\t\t\t\tpathPattern: \"^(?:resolutions|overrides|pnpm.overrides)$\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: [\"types\", \"import\", \"require\", \"default\"],\n\t\t\t\t\tpathPattern: \"^exports.*$\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: [\n\t\t\t\t\t\t// client hooks only\n\t\t\t\t\t\t\"pre-commit\",\n\t\t\t\t\t\t\"prepare-commit-msg\",\n\t\t\t\t\t\t\"commit-msg\",\n\t\t\t\t\t\t\"post-commit\",\n\t\t\t\t\t\t\"pre-rebase\",\n\t\t\t\t\t\t\"post-rewrite\",\n\t\t\t\t\t\t\"post-checkout\",\n\t\t\t\t\t\t\"post-merge\",\n\t\t\t\t\t\t\"pre-push\",\n\t\t\t\t\t\t\"pre-auto-gc\",\n\t\t\t\t\t],\n\t\t\t\t\tpathPattern: \"^(?:gitHooks|husky|simple-git-hooks)$\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t},\n];\n\n/**\n * Sort tsconfig.json\n *\n * Requires `jsonc` config\n */\n\nexport const sortTsconfig = (): TypedFlatConfigItem[] => [\n\t{\n\t\tfiles: [\"**/tsconfig.json\", \"**/tsconfig.*.json\"],\n\n\t\tname: \"zayne/sort/tsconfig.json\",\n\n\t\trules: {\n\t\t\t\"jsonc/sort-keys\": [\n\t\t\t\t\"error\",\n\t\t\t\t{\n\t\t\t\t\torder: [\"extends\", \"compilerOptions\", \"references\", \"files\", \"include\", \"exclude\"],\n\t\t\t\t\tpathPattern: \"^$\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: [\n\t\t\t\t\t\t/* Projects */\n\t\t\t\t\t\t\"incremental\",\n\t\t\t\t\t\t\"composite\",\n\t\t\t\t\t\t\"tsBuildInfoFile\",\n\t\t\t\t\t\t\"disableSourceOfProjectReferenceRedirect\",\n\t\t\t\t\t\t\"disableSolutionSearching\",\n\t\t\t\t\t\t\"disableReferencedProjectLoad\",\n\t\t\t\t\t\t/* Language and Environment */\n\t\t\t\t\t\t\"target\",\n\t\t\t\t\t\t\"jsx\",\n\t\t\t\t\t\t\"jsxFactory\",\n\t\t\t\t\t\t\"jsxFragmentFactory\",\n\t\t\t\t\t\t\"jsxImportSource\",\n\t\t\t\t\t\t\"lib\",\n\t\t\t\t\t\t\"moduleDetection\",\n\t\t\t\t\t\t\"noLib\",\n\t\t\t\t\t\t\"reactNamespace\",\n\t\t\t\t\t\t\"useDefineForClassFields\",\n\t\t\t\t\t\t\"emitDecoratorMetadata\",\n\t\t\t\t\t\t\"experimentalDecorators\",\n\t\t\t\t\t\t/* Modules */\n\t\t\t\t\t\t\"baseUrl\",\n\t\t\t\t\t\t\"rootDir\",\n\t\t\t\t\t\t\"rootDirs\",\n\t\t\t\t\t\t\"customConditions\",\n\t\t\t\t\t\t\"module\",\n\t\t\t\t\t\t\"moduleResolution\",\n\t\t\t\t\t\t\"moduleSuffixes\",\n\t\t\t\t\t\t\"noResolve\",\n\t\t\t\t\t\t\"paths\",\n\t\t\t\t\t\t\"resolveJsonModule\",\n\t\t\t\t\t\t\"resolvePackageJsonExports\",\n\t\t\t\t\t\t\"resolvePackageJsonImports\",\n\t\t\t\t\t\t\"typeRoots\",\n\t\t\t\t\t\t\"types\",\n\t\t\t\t\t\t\"allowArbitraryExtensions\",\n\t\t\t\t\t\t\"allowImportingTsExtensions\",\n\t\t\t\t\t\t\"allowUmdGlobalAccess\",\n\t\t\t\t\t\t/* JavaScript Support */\n\t\t\t\t\t\t\"allowJs\",\n\t\t\t\t\t\t\"checkJs\",\n\t\t\t\t\t\t\"maxNodeModuleJsDepth\",\n\t\t\t\t\t\t/* Type Checking */\n\t\t\t\t\t\t\"strict\",\n\t\t\t\t\t\t\"strictBindCallApply\",\n\t\t\t\t\t\t\"strictFunctionTypes\",\n\t\t\t\t\t\t\"strictNullChecks\",\n\t\t\t\t\t\t\"strictPropertyInitialization\",\n\t\t\t\t\t\t\"allowUnreachableCode\",\n\t\t\t\t\t\t\"allowUnusedLabels\",\n\t\t\t\t\t\t\"alwaysStrict\",\n\t\t\t\t\t\t\"exactOptionalPropertyTypes\",\n\t\t\t\t\t\t\"noFallthroughCasesInSwitch\",\n\t\t\t\t\t\t\"noImplicitAny\",\n\t\t\t\t\t\t\"noImplicitOverride\",\n\t\t\t\t\t\t\"noImplicitReturns\",\n\t\t\t\t\t\t\"noImplicitThis\",\n\t\t\t\t\t\t\"noPropertyAccessFromIndexSignature\",\n\t\t\t\t\t\t\"noUncheckedIndexedAccess\",\n\t\t\t\t\t\t\"noUnusedLocals\",\n\t\t\t\t\t\t\"noUnusedParameters\",\n\t\t\t\t\t\t\"useUnknownInCatchVariables\",\n\t\t\t\t\t\t/* Emit */\n\t\t\t\t\t\t\"declaration\",\n\t\t\t\t\t\t\"declarationDir\",\n\t\t\t\t\t\t\"declarationMap\",\n\t\t\t\t\t\t\"downlevelIteration\",\n\t\t\t\t\t\t\"emitBOM\",\n\t\t\t\t\t\t\"emitDeclarationOnly\",\n\t\t\t\t\t\t\"importHelpers\",\n\t\t\t\t\t\t\"importsNotUsedAsValues\",\n\t\t\t\t\t\t\"inlineSourceMap\",\n\t\t\t\t\t\t\"inlineSources\",\n\t\t\t\t\t\t\"mapRoot\",\n\t\t\t\t\t\t\"newLine\",\n\t\t\t\t\t\t\"noEmit\",\n\t\t\t\t\t\t\"noEmitHelpers\",\n\t\t\t\t\t\t\"noEmitOnError\",\n\t\t\t\t\t\t\"outDir\",\n\t\t\t\t\t\t\"outFile\",\n\t\t\t\t\t\t\"preserveConstEnums\",\n\t\t\t\t\t\t\"preserveValueImports\",\n\t\t\t\t\t\t\"removeComments\",\n\t\t\t\t\t\t\"sourceMap\",\n\t\t\t\t\t\t\"sourceRoot\",\n\t\t\t\t\t\t\"stripInternal\",\n\t\t\t\t\t\t/* Interop Constraints */\n\t\t\t\t\t\t\"allowSyntheticDefaultImports\",\n\t\t\t\t\t\t\"esModuleInterop\",\n\t\t\t\t\t\t\"forceConsistentCasingInFileNames\",\n\t\t\t\t\t\t\"isolatedDeclarations\",\n\t\t\t\t\t\t\"isolatedModules\",\n\t\t\t\t\t\t\"preserveSymlinks\",\n\t\t\t\t\t\t\"verbatimModuleSyntax\",\n\t\t\t\t\t\t/* Completeness */\n\t\t\t\t\t\t\"skipDefaultLibCheck\",\n\t\t\t\t\t\t\"skipLibCheck\",\n\t\t\t\t\t],\n\t\t\t\t\tpathPattern: \"^compilerOptions$\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t},\n];\n","import type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault } from \"@/utils\";\n\nconst stylistic = async (\n\toptions: ExtractOptions<OptionsConfig[\"stylistic\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { jsx = true, overrides } = options;\n\tconst eslintPluginStylistic = await interopDefault(import(\"@stylistic/eslint-plugin\"));\n\n\treturn [\n\t\t// == Stylistic Rules (Optional)\n\t\t{\n\t\t\tname: \"zayne/stylistic/rules\",\n\n\t\t\tplugins: {\n\t\t\t\tstylistic: eslintPluginStylistic,\n\t\t\t},\n\n\t\t\trules: {\n\t\t\t\t\"stylistic/no-floating-decimal\": \"error\",\n\t\t\t\t\"stylistic/spaced-comment\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t\"always\",\n\t\t\t\t\t{\n\t\t\t\t\t\tblock: {\n\t\t\t\t\t\t\tbalanced: true,\n\t\t\t\t\t\t\texceptions: [\"*\"],\n\t\t\t\t\t\t\tmarkers: [\"!\"],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tline: {\n\t\t\t\t\t\t\texceptions: [\"/\", \"#\"],\n\t\t\t\t\t\t\tmarkers: [\"/\"],\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t...(jsx && {\n\t\t\t\t\t\"stylistic/jsx-self-closing-comp\": \"warn\",\n\t\t\t\t}),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { stylistic };\n","import type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"@/types\";\nimport { ensurePackages, interopDefault } from \"@/utils\";\n\nconst tailwindcss = async (\n\toptions: ExtractOptions<OptionsConfig[\"tailwindcss\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, settings: tailwindCssSettings } = options;\n\n\tawait ensurePackages([\"eslint-plugin-tailwindcss\"]);\n\n\tconst eslintPluginTailwindCss = await interopDefault(import(\"eslint-plugin-tailwindcss\"));\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/tailwindcss/setup\",\n\t\t\tplugins: {\n\t\t\t\ttailwindcss: eslintPluginTailwindCss,\n\t\t\t},\n\t\t\tsettings: {\n\t\t\t\ttailwindcss: {\n\t\t\t\t\tcallees: [\"tv\", \"cnMerge\", \"cn\", \"cnJoin\", \"twMerge\", \"twJoin\"],\n\t\t\t\t\tclassRegex: \"^class(Name|Names)?$\",\n\t\t\t\t\tcssFiles: [],\n\t\t\t\t\tremoveDuplicates: false, // Turned off cuz prettier already handles this via plugin\n\t\t\t\t\t...tailwindCssSettings,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/tailwindcss/recommended\",\n\n\t\t\trules: eslintPluginTailwindCss.configs[\"flat/recommended\"][1]?.rules,\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/tailwindcss/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"tailwindcss/no-contradicting-classname\": \"off\", // Turned off cuz tw intellisense already handles this\n\t\t\t\t\"tailwindcss/no-custom-classname\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{ ignoredKeys: [\"compoundVariants\", \"defaultVariants\", \"responsiveVariants\"] },\n\t\t\t\t],\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { tailwindcss };\n","import type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"@/types\";\nimport { ensurePackages, interopDefault, renameRules } from \"@/utils\";\nimport { defaultPluginRenameMap } from \"../constants\";\n\nconst tanstack = async (\n\toptions: ExtractOptions<OptionsConfig[\"tanstack\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, query = true } = options;\n\n\tconst config: TypedFlatConfigItem[] = [];\n\n\tawait ensurePackages([...(query ? [\"@tanstack/eslint-plugin-query\"] : [])]);\n\n\tconst [eslintPluginTanstackQuery] = await Promise.all(\n\t\tquery ? [interopDefault(import(\"@tanstack/eslint-plugin-query\"))] : []\n\t);\n\n\tif (query && eslintPluginTanstackQuery) {\n\t\tconfig.push(\n\t\t\t{\n\t\t\t\tname: \"zayne/tanstack-query/recommended\",\n\n\t\t\t\tplugins: {\n\t\t\t\t\t\"tanstack-query\": eslintPluginTanstackQuery,\n\t\t\t\t},\n\n\t\t\t\trules: renameRules(\n\t\t\t\t\teslintPluginTanstackQuery.configs[\"flat/recommended\"][0]?.rules,\n\t\t\t\t\tdefaultPluginRenameMap\n\t\t\t\t),\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tname: \"zayne/tanstack-query/rules\",\n\n\t\t\t\trules: {\n\t\t\t\t\t...overrides,\n\t\t\t\t},\n\t\t\t}\n\t\t);\n\t}\n\n\treturn config;\n};\n\nexport { tanstack };\n","import { GLOB_TOML } from \"../globs\";\nimport type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"../types\";\nimport { interopDefault } from \"../utils\";\n\nexport const toml = async (\n\toptions: ExtractOptions<OptionsConfig[\"toml\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { files = [GLOB_TOML], overrides, stylistic = true } = options;\n\n\tconst [pluginToml, parserToml] = await Promise.all([\n\t\tinteropDefault(import(\"eslint-plugin-toml\")),\n\t\tinteropDefault(import(\"toml-eslint-parser\")),\n\t]);\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/toml/setup\",\n\n\t\t\tplugins: {\n\t\t\t\ttoml: pluginToml,\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tlanguageOptions: {\n\t\t\t\tparser: parserToml,\n\t\t\t},\n\n\t\t\tname: \"zayne/toml/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"style/spaced-comment\": \"off\",\n\n\t\t\t\t\"toml/comma-style\": \"error\",\n\t\t\t\t\"toml/keys-order\": \"error\",\n\t\t\t\t\"toml/no-space-dots\": \"error\",\n\t\t\t\t\"toml/no-unreadable-number-separator\": \"error\",\n\t\t\t\t\"toml/precision-of-fractional-seconds\": \"error\",\n\t\t\t\t\"toml/precision-of-integer\": \"error\",\n\t\t\t\t\"toml/tables-order\": \"error\",\n\n\t\t\t\t\"toml/vue-custom-block/no-parsing-error\": \"error\",\n\n\t\t\t\t...(stylistic && {\n\t\t\t\t\t\"toml/array-bracket-newline\": \"error\",\n\t\t\t\t\t\"toml/array-bracket-spacing\": \"error\",\n\t\t\t\t\t\"toml/array-element-newline\": \"error\",\n\t\t\t\t\t// \"toml/indent\": [\"error\", indent],\n\t\t\t\t\t\"toml/inline-table-curly-spacing\": \"error\",\n\t\t\t\t\t\"toml/key-spacing\": \"error\",\n\t\t\t\t\t\"toml/padding-line-between-pairs\": \"error\",\n\t\t\t\t\t\"toml/padding-line-between-tables\": \"error\",\n\t\t\t\t\t\"toml/quoted-keys\": \"error\",\n\t\t\t\t\t\"toml/spaced-comment\": \"error\",\n\t\t\t\t\t\"toml/table-bracket-spacing\": \"error\",\n\t\t\t\t}),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n","import { interopDefault, renamePluginInConfigs } from \"@/utils\";\nimport { GLOB_ASTRO_TS, GLOB_MARKDOWN, GLOB_TS, GLOB_TSX } from \"../globs\";\nimport type {\n\tExtractOptions,\n\tOptionsConfig,\n\tOptionsTypeScriptParserOptions,\n\tOptionsTypeScriptWithTypes,\n\tTypedFlatConfigItem,\n} from \"../types\";\n\nexport const typescript = async (\n\toptions: ExtractOptions<OptionsConfig[\"typescript\"]>\n\t\t& OptionsTypeScriptParserOptions\n\t\t& OptionsTypeScriptWithTypes = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst {\n\t\tallowDefaultProjects,\n\t\tcomponentExts = [],\n\t\tfiles = [GLOB_TS, GLOB_TSX, ...componentExts.map((ext) => `**/*.${ext}`)],\n\t\tfilesTypeAware = [GLOB_TS, GLOB_TSX, ...componentExts.map((ext) => `**/*.${ext}`)],\n\t\tignoresTypeAware = [`${GLOB_MARKDOWN}/**`, GLOB_ASTRO_TS],\n\t\toverrides,\n\t\toverridesTypeAware,\n\t\tparserOptions,\n\t\tstylistic = true,\n\t\ttsconfigPath,\n\t} = options;\n\n\tconst isTypeAware = Boolean(tsconfigPath);\n\n\tconst tsEslint = await interopDefault(import(\"typescript-eslint\"));\n\n\tconst projectServiceObject =\n\t\tisTypeAware\n\t\t&& (allowDefaultProjects\n\t\t\t? {\n\t\t\t\t\tprojectService: {\n\t\t\t\t\t\tallowDefaultProject: allowDefaultProjects,\n\t\t\t\t\t\tdefaultProject: tsconfigPath,\n\t\t\t\t\t},\n\t\t\t\t\ttsconfigRootDir: process.cwd(),\n\t\t\t\t}\n\t\t\t: {\n\t\t\t\t\tproject: tsconfigPath,\n\t\t\t\t\ttsconfigRootDir: process.cwd(),\n\t\t\t\t});\n\n\tconst makeParser = (parsedFiles: string[], ignores?: string[]): TypedFlatConfigItem => ({\n\t\tfiles: parsedFiles,\n\n\t\t...(ignores && { ignores }),\n\n\t\tlanguageOptions: {\n\t\t\tparser: tsEslint.parser,\n\n\t\t\tparserOptions: {\n\t\t\t\tecmaFeatures: { globalReturn: true },\n\n\t\t\t\textraFileExtensions: componentExts.map((ext) => `.${ext}`),\n\n\t\t\t\tsourceType: \"module\",\n\n\t\t\t\t...projectServiceObject,\n\n\t\t\t\t...parserOptions,\n\t\t\t},\n\t\t},\n\t});\n\n\tconst selectedBaseRuleSet = isTypeAware ? \"strictTypeChecked\" : \"strict\";\n\tconst selectedStylisticRuleSet = isTypeAware ? \"strictTypeChecked\" : \"strict\";\n\n\tconst typeAwareRules = {\n\t\t\"ts-eslint/no-unnecessary-type-parameters\": \"off\",\n\t\t\"ts-eslint/non-nullable-type-assertion-style\": \"off\",\n\t\t\"ts-eslint/prefer-nullish-coalescing\": [\"error\", { ignoreConditionalTests: true }],\n\t\t\"ts-eslint/restrict-template-expressions\": [\n\t\t\t\"error\",\n\t\t\t{ allowBoolean: true, allowNullish: true, allowNumber: true },\n\t\t],\n\t\t\"ts-eslint/return-await\": [\"error\", \"in-try-catch\"],\n\t} satisfies TypedFlatConfigItem[\"rules\"];\n\n\treturn [\n\t\t{\n\t\t\tname: `zayne/ts-eslint/${isTypeAware ? \"type-aware-setup\" : \"setup\"}`,\n\n\t\t\t...makeParser(files),\n\t\t\t...(isTypeAware && makeParser(filesTypeAware, ignoresTypeAware)),\n\t\t},\n\n\t\t...renamePluginInConfigs({\n\t\t\tconfigs: tsEslint.configs[selectedBaseRuleSet],\n\t\t\toverrides: {\n\t\t\t\tfiles,\n\t\t\t\tname: `zayne/ts-eslint/${selectedBaseRuleSet}`,\n\t\t\t},\n\t\t\trenameMap: { \"@typescript-eslint\": \"ts-eslint\" },\n\t\t}),\n\n\t\t...(stylistic\n\t\t\t? renamePluginInConfigs({\n\t\t\t\t\tconfigs: tsEslint.configs[selectedStylisticRuleSet],\n\t\t\t\t\toverrides: {\n\t\t\t\t\t\tfiles,\n\t\t\t\t\t\tname: `zayne/ts-eslint/${selectedStylisticRuleSet}`,\n\t\t\t\t\t},\n\t\t\t\t\trenameMap: { \"@typescript-eslint\": \"ts-eslint\" },\n\t\t\t\t})\n\t\t\t: []),\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/ts-eslint/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"ts-eslint/array-type\": [\"error\", { default: \"array-simple\" }],\n\t\t\t\t\"ts-eslint/consistent-type-definitions\": [\"error\", \"type\"],\n\t\t\t\t\"ts-eslint/default-param-last\": \"error\",\n\t\t\t\t\"ts-eslint/member-ordering\": \"error\",\n\t\t\t\t\"ts-eslint/method-signature-style\": [\"error\", \"property\"],\n\t\t\t\t\"ts-eslint/no-confusing-void-expression\": \"off\",\n\t\t\t\t\"ts-eslint/no-empty-function\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{ allow: [\"arrowFunctions\", \"functions\", \"methods\"] },\n\t\t\t\t],\n\t\t\t\t\"ts-eslint/no-import-type-side-effects\": \"error\",\n\t\t\t\t\"ts-eslint/no-shadow\": \"error\",\n\t\t\t\t\"ts-eslint/no-unused-expressions\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tallowShortCircuit: true,\n\t\t\t\t\t\tallowTernary: true,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"ts-eslint/no-unused-vars\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\targs: \"all\",\n\t\t\t\t\t\targsIgnorePattern: \"^_\",\n\t\t\t\t\t\tcaughtErrors: \"all\",\n\t\t\t\t\t\tdestructuredArrayIgnorePattern: \"^_\",\n\t\t\t\t\t\treportUsedIgnorePattern: true,\n\t\t\t\t\t\tvars: \"all\",\n\t\t\t\t\t\tvarsIgnorePattern: \"[iI]gnored\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"ts-eslint/no-use-before-define\": \"off\",\n\t\t\t\t\"ts-eslint/no-useless-constructor\": \"error\",\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\n\t\tisTypeAware\n\t\t\t? {\n\t\t\t\t\tfiles: filesTypeAware,\n\t\t\t\t\tignores: ignoresTypeAware,\n\t\t\t\t\tname: \"zayne/ts-eslint/rules-type-aware\",\n\t\t\t\t\trules: {\n\t\t\t\t\t\t...typeAwareRules,\n\t\t\t\t\t\t...overridesTypeAware,\n\t\t\t\t\t},\n\t\t\t\t}\n\t\t\t: {},\n\t];\n};\n","import { interopDefault } from \"@/utils\";\nimport type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"../types\";\n\nexport const unicorn = async (\n\toptions: ExtractOptions<OptionsConfig[\"unicorn\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, type = \"app\" } = options;\n\n\tconst eslintPluginUnicorn = await interopDefault(import(\"eslint-plugin-unicorn\"));\n\n\treturn [\n\t\t{\n\t\t\t...eslintPluginUnicorn.configs[\"flat/recommended\"],\n\t\t\tname: \"zayne/unicorn/recommended\",\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/unicorn/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"unicorn/filename-case\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\tcases: {\n\t\t\t\t\t\t\tcamelCase: true,\n\t\t\t\t\t\t\tkebabCase: true,\n\t\t\t\t\t\t\tpascalCase: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t...(type === \"app\"\n\t\t\t\t\t? {\n\t\t\t\t\t\t\t\"unicorn/prefer-global-this\": \"off\",\n\t\t\t\t\t\t}\n\t\t\t\t\t: {\n\t\t\t\t\t\t\t\"unicorn/prefer-global-this\": \"warn\",\n\t\t\t\t\t\t}),\n\n\t\t\t\t\"unicorn/new-for-builtins\": \"off\",\n\t\t\t\t\"unicorn/no-array-for-each\": \"off\",\n\t\t\t\t\"unicorn/no-array-reduce\": \"off\",\n\t\t\t\t\"unicorn/no-negated-condition\": \"off\",\n\t\t\t\t\"unicorn/no-null\": \"off\",\n\t\t\t\t\"unicorn/no-useless-undefined\": [\"error\", { checkArguments: true }],\n\t\t\t\t\"unicorn/numeric-separators-style\": \"off\",\n\t\t\t\t\"unicorn/prevent-abbreviations\": \"off\",\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n","import type { Linter } from \"eslint\";\nimport { mergeProcessors } from \"eslint-merge-processors\";\nimport { GLOB_VUE } from \"../globs\";\nimport type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"../types\";\nimport { ensurePackages, interopDefault, resolveOptions } from \"../utils\";\n\nexport const vue = async (\n\toptions: ExtractOptions<OptionsConfig[\"vue\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst {\n\t\tfiles = [GLOB_VUE],\n\t\toverrides,\n\t\tsfcBlocks = true,\n\t\tstylistic = true,\n\t\ttypescript = true,\n\t\tvueVersion = 3,\n\t} = options;\n\n\tawait ensurePackages([\n\t\t\"eslint-plugin-vue\",\n\t\t\"vue-eslint-parser\",\n\t\t...(sfcBlocks ? [\"eslint-processor-vue-blocks\"] : []),\n\t]);\n\n\tconst [pluginVue, parserVue, processorVueBlocks] = await Promise.all([\n\t\tinteropDefault(import(\"eslint-plugin-vue\")),\n\t\tinteropDefault(import(\"vue-eslint-parser\")),\n\t\t...(sfcBlocks ? [interopDefault(import(\"eslint-processor-vue-blocks\"))] : []),\n\t]);\n\n\treturn [\n\t\t{\n\t\t\t/**\n\t\t\t * This allows Vue plugin to work with auto imports\n\t\t\t * @ see https://github.com/vuejs/eslint-plugin-vue/pull/2422\n\t\t\t */\n\t\t\tlanguageOptions: {\n\t\t\t\tglobals: {\n\t\t\t\t\tcomputed: \"readonly\",\n\t\t\t\t\tdefineEmits: \"readonly\",\n\t\t\t\t\tdefineExpose: \"readonly\",\n\t\t\t\t\tdefineProps: \"readonly\",\n\t\t\t\t\tonMounted: \"readonly\",\n\t\t\t\t\tonUnmounted: \"readonly\",\n\t\t\t\t\treactive: \"readonly\",\n\t\t\t\t\tref: \"readonly\",\n\t\t\t\t\tshallowReactive: \"readonly\",\n\t\t\t\t\tshallowRef: \"readonly\",\n\t\t\t\t\ttoRef: \"readonly\",\n\t\t\t\t\ttoRefs: \"readonly\",\n\t\t\t\t\twatch: \"readonly\",\n\t\t\t\t\twatchEffect: \"readonly\",\n\t\t\t\t},\n\t\t\t},\n\n\t\t\tname: \"zayne/vue/setup\",\n\n\t\t\tplugins: {\n\t\t\t\tvue: pluginVue,\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tlanguageOptions: {\n\t\t\t\tparser: parserVue,\n\t\t\t\tparserOptions: {\n\t\t\t\t\tecmaFeatures: {\n\t\t\t\t\t\tjsx: true,\n\t\t\t\t\t},\n\t\t\t\t\textraFileExtensions: [\".vue\"],\n\t\t\t\t\tsourceType: \"module\",\n\n\t\t\t\t\t// eslint-disable-next-line unicorn/no-await-expression-member -- ignore for now\n\t\t\t\t\t...(typescript && { parser: (await interopDefault(import(\"typescript-eslint\"))).parser }),\n\t\t\t\t},\n\t\t\t},\n\n\t\t\tname: \"zayne/vue/setup/file-processor\",\n\n\t\t\tprocessor:\n\t\t\t\tsfcBlocks === false\n\t\t\t\t\t? (pluginVue.processors[\".vue\"] as Linter.Processor)\n\t\t\t\t\t: mergeProcessors([\n\t\t\t\t\t\t\tpluginVue.processors[\".vue\"] as Linter.Processor,\n\t\t\t\t\t\t\tprocessorVueBlocks?.({\n\t\t\t\t\t\t\t\t...resolveOptions(sfcBlocks),\n\t\t\t\t\t\t\t\tblocks: {\n\t\t\t\t\t\t\t\t\tstyles: true,\n\t\t\t\t\t\t\t\t\t...resolveOptions(sfcBlocks).blocks,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}) ?? (pluginVue.processors[\".vue\"] as Linter.Processor),\n\t\t\t\t\t\t]),\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/vue/recommended\",\n\n\t\t\trules: {\n\t\t\t\t...pluginVue.configs.base.rules,\n\n\t\t\t\t...pluginVue.configs[`flat/${vueVersion === 2 ? \"vue2-\" : \"\"}essential`].at(-1)?.rules,\n\t\t\t\t...pluginVue.configs[`flat/${vueVersion === 2 ? \"vue2-\" : \"\"}strongly-recommended`].at(-1)\n\t\t\t\t\t?.rules,\n\t\t\t\t...pluginVue.configs[`flat/${vueVersion === 2 ? \"vue2-\" : \"\"}recommended`].at(-1)?.rules,\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/vue/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"node/prefer-global/process\": \"off\",\n\n\t\t\t\t\"vue/block-order\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: [\"script\", \"template\", \"style\"],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"vue/component-name-in-template-casing\": [\"error\", \"PascalCase\"],\n\n\t\t\t\t\"vue/component-options-name-casing\": [\"error\", \"PascalCase\"],\n\n\t\t\t\t// == this is deprecated\n\t\t\t\t\"vue/component-tags-order\": \"off\",\n\n\t\t\t\t\"vue/custom-event-name-casing\": [\"error\", \"camelCase\"],\n\t\t\t\t\"vue/define-macros-order\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: [\"defineOptions\", \"defineProps\", \"defineEmits\", \"defineSlots\"],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"vue/dot-location\": [\"error\", \"property\"],\n\t\t\t\t\"vue/dot-notation\": [\"error\", { allowKeywords: true }],\n\t\t\t\t\"vue/eqeqeq\": [\"error\", \"smart\"],\n\t\t\t\t\"vue/html-indent\": \"off\",\n\t\t\t\t\"vue/html-quotes\": [\"error\", \"double\"],\n\t\t\t\t\"vue/max-attributes-per-line\": \"off\",\n\t\t\t\t\"vue/multi-word-component-names\": \"off\",\n\t\t\t\t\"vue/no-dupe-keys\": \"off\",\n\t\t\t\t\"vue/no-empty-pattern\": \"error\",\n\t\t\t\t\"vue/no-irregular-whitespace\": \"error\",\n\t\t\t\t\"vue/no-loss-of-precision\": \"error\",\n\t\t\t\t\"vue/no-restricted-syntax\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t\"DebuggerStatement\",\n\t\t\t\t\t\"LabeledStatement\",\n\t\t\t\t\t\"WithStatement\",\n\t\t\t\t],\n\t\t\t\t\"vue/no-restricted-v-bind\": [\"error\", \"/^v-/\"],\n\t\t\t\t\"vue/no-setup-props-reactivity-loss\": \"off\",\n\t\t\t\t\"vue/no-sparse-arrays\": \"error\",\n\t\t\t\t\"vue/no-unused-refs\": \"error\",\n\t\t\t\t\"vue/no-useless-v-bind\": \"error\",\n\t\t\t\t\"vue/no-v-html\": \"off\",\n\t\t\t\t\"vue/object-shorthand\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t\"always\",\n\t\t\t\t\t{\n\t\t\t\t\t\tavoidQuotes: true,\n\t\t\t\t\t\tignoreConstructors: false,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"vue/prefer-separate-static-class\": \"error\",\n\t\t\t\t\"vue/prefer-template\": \"error\",\n\t\t\t\t\"vue/prop-name-casing\": [\"error\", \"camelCase\"],\n\t\t\t\t\"vue/require-default-prop\": \"off\",\n\t\t\t\t\"vue/require-prop-types\": \"off\",\n\t\t\t\t\"vue/singleline-html-element-content-newline\": \"off\",\n\t\t\t\t\"vue/space-infix-ops\": \"error\",\n\t\t\t\t\"vue/space-unary-ops\": [\"error\", { nonwords: false, words: true }],\n\n\t\t\t\t...(stylistic && {\n\t\t\t\t\t\"vue/array-bracket-spacing\": [\"error\", \"never\"],\n\t\t\t\t\t\"vue/arrow-spacing\": [\"error\", { after: true, before: true }],\n\t\t\t\t\t\"vue/block-spacing\": [\"error\", \"always\"],\n\t\t\t\t\t\"vue/block-tag-newline\": [\n\t\t\t\t\t\t\"error\",\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmultiline: \"always\",\n\t\t\t\t\t\t\tsingleline: \"always\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\t\"vue/brace-style\": [\"error\", \"stroustrup\", { allowSingleLine: true }],\n\t\t\t\t\t\"vue/comma-dangle\": [\"error\", \"always-multiline\"],\n\t\t\t\t\t\"vue/comma-spacing\": [\"error\", { after: true, before: false }],\n\t\t\t\t\t\"vue/comma-style\": [\"error\", \"last\"],\n\t\t\t\t\t\"vue/html-comment-content-spacing\": [\n\t\t\t\t\t\t\"error\",\n\t\t\t\t\t\t\"always\",\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\texceptions: [\"-\"],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\t\"vue/key-spacing\": [\"error\", { afterColon: true, beforeColon: false }],\n\t\t\t\t\t\"vue/keyword-spacing\": [\"error\", { after: true, before: true }],\n\t\t\t\t\t\"vue/object-curly-newline\": \"off\",\n\t\t\t\t\t\"vue/object-curly-spacing\": [\"error\", \"always\"],\n\t\t\t\t\t\"vue/object-property-newline\": [\"error\", { allowMultiplePropertiesPerLine: true }],\n\t\t\t\t\t\"vue/operator-linebreak\": [\"error\", \"before\"],\n\t\t\t\t\t\"vue/padding-line-between-blocks\": [\"error\", \"always\"],\n\t\t\t\t\t\"vue/quote-props\": [\"error\", \"consistent-as-needed\"],\n\t\t\t\t\t\"vue/space-in-parens\": [\"error\", \"never\"],\n\t\t\t\t\t\"vue/template-curly-spacing\": \"error\",\n\t\t\t\t}),\n\n\t\t\t\t\"ts-eslint/no-unused-vars\": \"off\",\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n","import { GLOB_YAML } from \"../globs\";\nimport type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"../types\";\nimport { interopDefault } from \"../utils\";\n\nexport const yaml = async (\n\toptions: ExtractOptions<OptionsConfig[\"yaml\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { files = [GLOB_YAML], overrides, stylistic = true } = options;\n\n\tconst [pluginYaml, parserYaml] = await Promise.all([\n\t\tinteropDefault(import(\"eslint-plugin-yml\")),\n\t\tinteropDefault(import(\"yaml-eslint-parser\")),\n\t]);\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/yaml/setup\",\n\t\t\tplugins: {\n\t\t\t\tyaml: pluginYaml,\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tfiles,\n\n\t\t\tlanguageOptions: {\n\t\t\t\tparser: parserYaml,\n\t\t\t},\n\n\t\t\tname: \"zayne/yaml/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"yaml/block-mapping\": \"error\",\n\t\t\t\t\"yaml/block-sequence\": \"error\",\n\t\t\t\t\"yaml/no-empty-key\": \"error\",\n\t\t\t\t\"yaml/no-empty-sequence-entry\": \"error\",\n\t\t\t\t\"yaml/no-irregular-whitespace\": \"error\",\n\t\t\t\t\"yaml/plain-scalar\": \"error\",\n\n\t\t\t\t\"yaml/vue-custom-block/no-parsing-error\": \"error\",\n\n\t\t\t\t...(stylistic && {\n\t\t\t\t\t\"yaml/block-mapping-question-indicator-newline\": \"error\",\n\t\t\t\t\t\"yaml/block-sequence-hyphen-indicator-newline\": \"error\",\n\t\t\t\t\t\"yaml/flow-mapping-curly-newline\": \"error\",\n\t\t\t\t\t\"yaml/flow-mapping-curly-spacing\": \"error\",\n\t\t\t\t\t\"yaml/flow-sequence-bracket-newline\": \"error\",\n\t\t\t\t\t\"yaml/flow-sequence-bracket-spacing\": \"error\",\n\t\t\t\t\t// \"yaml/indent\": [\"error\", indent],\n\t\t\t\t\t\"yaml/key-spacing\": \"error\",\n\t\t\t\t\t\"yaml/no-tab-indent\": \"error\",\n\t\t\t\t\t// \"yaml/quotes\": [\n\t\t\t\t\t// \t\"error\",\n\t\t\t\t\t// \t{ avoidEscape: true, prefer: quotes === \"backtick\" ? \"double\" : quotes },\n\t\t\t\t\t// ],\n\t\t\t\t\t\"yaml/spaced-comment\": \"error\",\n\t\t\t\t}),\n\n\t\t\t\t\"stylistic/spaced-comment\": \"off\",\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n","import { GLOB_JSX, GLOB_TSX } from \"@/globs\";\nimport type { TypedFlatConfigItem } from \"@/types\";\n\nconst jsx = (): TypedFlatConfigItem[] => {\n\treturn [\n\t\t{\n\t\t\tfiles: [GLOB_JSX, GLOB_TSX],\n\n\t\t\tlanguageOptions: {\n\t\t\t\tparserOptions: {\n\t\t\t\t\tecmaFeatures: {\n\t\t\t\t\t\tjsx: true,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\n\t\t\tname: \"zayne/jsx/setup\",\n\t\t},\n\t];\n};\n\nexport { jsx };\n","import { isObject, resolveOptions } from \"@/utils\";\nimport { assert } from \"@zayne-labs/toolkit-type-helpers\";\nimport type { Linter } from \"eslint\";\nimport { FlatConfigComposer } from \"eslint-flat-config-utils\";\nimport { isPackageExists } from \"local-pkg\";\nimport {\n\tastro,\n\tcomments,\n\tgitIgnores,\n\tignores,\n\timports,\n\tjavascript,\n\tjsdoc,\n\tjsonc,\n\tnode,\n\tperfectionist,\n\tpnpm,\n\treact,\n\tsolid,\n\tsortPackageJson,\n\tsortTsconfig,\n\tstylistic,\n\ttailwindcss,\n\ttanstack,\n\ttoml,\n\ttypescript,\n\tunicorn,\n\tvue,\n\tyaml,\n} from \"./configs\";\nimport { jsx } from \"./configs/jsx\";\nimport { defaultPluginRenameMap } from \"./constants\";\nimport type { Awaitable, ConfigNames, OptionsConfig, Prettify, TypedFlatConfigItem } from \"./types\";\n\nconst ReactPackages = [\"react\", \"react-dom\"];\n\n/**\n * @description Construct an array of ESLint flat config items.\n * @param options\n * The options for generating the ESLint configurations.\n * @param userConfigs\n * The extra user configurations to be merged with the generated configurations.\n * @returns\n * The merged ESLint configurations.\n */\nexport const zayne = (\n\toptions: OptionsConfig & Prettify<Pick<TypedFlatConfigItem, \"ignores\">> = {},\n\t...userConfigs: Array<\n\t\tAwaitable<FlatConfigComposer | Linter.Config[] | TypedFlatConfigItem | TypedFlatConfigItem[]>\n\t>\n): FlatConfigComposer<TypedFlatConfigItem, ConfigNames> => {\n\tconst {\n\t\tautoRenamePlugins = true,\n\t\tcomponentExts = [],\n\t\ttype = \"app\",\n\t\twithDefaults = true,\n\t\t...restOfOptions\n\t} = options;\n\n\t// == These configs are too needful to be turned off with a single switch, plus won't harm things much\n\tconst enableGitignore = restOfOptions.gitignore ?? true;\n\tconst enableJsx = restOfOptions.jsx ?? true;\n\n\t// == These ones won't matter if they are all turned off at once\n\tconst enableComments = restOfOptions.comments ?? withDefaults;\n\tconst enableImports = restOfOptions.imports ?? withDefaults;\n\tconst enableJsdoc = restOfOptions.jsdoc ?? withDefaults;\n\tconst enablePnpmCatalogs = restOfOptions.pnpm;\n\tconst enableJsonc = restOfOptions.jsonc ?? withDefaults;\n\tconst enableNode = restOfOptions.node ?? withDefaults;\n\tconst enablePerfectionist = restOfOptions.perfectionist ?? withDefaults;\n\tconst enableReact =\n\t\trestOfOptions.react ?? (withDefaults && ReactPackages.some((pkg) => isPackageExists(pkg)));\n\tconst enableStylistic = restOfOptions.stylistic ?? withDefaults;\n\tconst enableToml = restOfOptions.toml ?? withDefaults;\n\tconst enableTypeScript = restOfOptions.typescript ?? (withDefaults && isPackageExists(\"typescript\"));\n\tconst enableUnicorn = restOfOptions.unicorn ?? withDefaults;\n\tconst enableYaml = restOfOptions.yaml ?? withDefaults;\n\n\tconst isStylistic = Boolean(enableStylistic);\n\n\tconst tsconfigPath =\n\t\tisObject(enableTypeScript) && \"tsconfigPath\" in enableTypeScript\n\t\t\t? enableTypeScript.tsconfigPath\n\t\t\t: null;\n\n\tconst isTypeAware = Boolean(tsconfigPath);\n\n\tconst configs: Array<Awaitable<TypedFlatConfigItem[]>> = [];\n\n\t// == Base configs\n\tconfigs.push(ignores(restOfOptions.ignores), javascript(restOfOptions.javascript));\n\n\t// == Other configs\n\tif (enableJsx) {\n\t\tconfigs.push(jsx());\n\t}\n\n\tif (restOfOptions.vue) {\n\t\tcomponentExts.push(\"vue\");\n\t}\n\n\tif (restOfOptions.astro) {\n\t\tcomponentExts.push(\"astro\");\n\t}\n\n\tif (enableTypeScript) {\n\t\tconfigs.push(\n\t\t\ttypescript({\n\t\t\t\tcomponentExts,\n\t\t\t\tstylistic: isStylistic,\n\t\t\t\t...resolveOptions(enableTypeScript),\n\t\t\t})\n\t\t);\n\t}\n\n\tif (enableStylistic) {\n\t\tconfigs.push(stylistic({ jsx: enableJsx, ...resolveOptions(enableStylistic) }));\n\t}\n\n\tif (enableComments) {\n\t\tconfigs.push(comments({ type, ...resolveOptions(enableComments) }));\n\t}\n\n\tif (enableGitignore) {\n\t\tconfigs.push(gitIgnores(resolveOptions(enableGitignore)));\n\t}\n\n\tif (enableImports) {\n\t\tconfigs.push(\n\t\t\timports({ stylistic: isStylistic, typescript: isTypeAware, ...resolveOptions(enableImports) })\n\t\t);\n\t}\n\n\tif (enablePnpmCatalogs) {\n\t\tconfigs.push(pnpm(resolveOptions(enablePnpmCatalogs)));\n\t}\n\n\tif (enableNode) {\n\t\tconfigs.push(node({ type, ...resolveOptions(enableNode) }));\n\t}\n\n\tif (enablePerfectionist) {\n\t\tconfigs.push(perfectionist(resolveOptions(enablePerfectionist)));\n\t}\n\n\tif (enableUnicorn) {\n\t\tconfigs.push(unicorn({ type, ...resolveOptions(enableUnicorn) }));\n\t}\n\n\tif (enableJsonc) {\n\t\tconfigs.push(\n\t\t\tjsonc({ stylistic: isStylistic, ...resolveOptions(enableJsonc) }),\n\t\t\tsortPackageJson(),\n\t\t\tsortTsconfig()\n\t\t);\n\t}\n\n\tif (enableJsdoc) {\n\t\tconfigs.push(jsdoc({ stylistic: isStylistic, ...resolveOptions(enableJsdoc) }));\n\t}\n\n\tif (restOfOptions.tailwindcss) {\n\t\tconfigs.push(tailwindcss(resolveOptions(restOfOptions.tailwindcss)));\n\t}\n\n\tif (restOfOptions.tanstack) {\n\t\tconfigs.push(tanstack(resolveOptions(restOfOptions.tanstack)));\n\t}\n\n\tif (enableToml) {\n\t\tconfigs.push(\n\t\t\ttoml({\n\t\t\t\tstylistic: isStylistic,\n\t\t\t\t...resolveOptions(enableToml),\n\t\t\t})\n\t\t);\n\t}\n\n\tif (enableYaml) {\n\t\tconfigs.push(\n\t\t\tyaml({\n\t\t\t\tstylistic: isStylistic,\n\t\t\t\t...resolveOptions(enableYaml),\n\t\t\t})\n\t\t);\n\t}\n\n\tif (enableReact) {\n\t\tconfigs.push(react({ typescript: isTypeAware, ...resolveOptions(enableReact) }));\n\t}\n\n\tif (restOfOptions.vue) {\n\t\tconfigs.push(\n\t\t\tvue({ stylistic: isStylistic, typescript: isTypeAware, ...resolveOptions(restOfOptions.vue) })\n\t\t);\n\t}\n\n\tif (restOfOptions.solid) {\n\t\tconfigs.push(solid({ typescript: isTypeAware, ...resolveOptions(restOfOptions.solid) }));\n\t}\n\n\tif (restOfOptions.astro) {\n\t\tconfigs.push(astro({ typescript: isTypeAware, ...resolveOptions(restOfOptions.astro) }));\n\t}\n\n\tassert(\n\t\t!(\"files\" in restOfOptions),\n\t\t`[@zayne-labs/eslint-config] The first argument should not contain the \"files\" property as the options are supposed to be global. Place it in the second config array instead.`\n\t);\n\n\tlet composer = new FlatConfigComposer<TypedFlatConfigItem, ConfigNames>();\n\n\tcomposer = composer.append(...configs, ...(userConfigs as never[]));\n\n\tif (autoRenamePlugins) {\n\t\tcomposer = composer.renamePlugins(defaultPluginRenameMap);\n\t}\n\n\treturn composer;\n};\n"]}
1
+ {"version":3,"file":"index.js","names":["value: unknown","module: Awaitable<TModule>","rules: Record<string, unknown> | undefined","renameMap: Record<string, string>","plugins: Record<string, unknown> | undefined","options: {\n\tconfigs: TypedFlatConfigItem[];\n\toverrides?: TypedFlatConfigItem;\n\trenameMap: Record<string, string>;\n}","name: string","packages: Array<string | undefined>","option: boolean | TObject | undefined","options: ExtractOptions<OptionsConfig[\"astro\"]>","options: ExtractOptions<OptionsConfig[\"comments\"]>","options: ExtractOptions<OptionsConfig[\"depend\"]>","userIgnores: string[]","options?: ExtractOptions<OptionsConfig[\"gitignore\"]>","options: ExtractOptions<OptionsConfig[\"imports\"]>","options: ExtractOptions<OptionsConfig[\"javascript\"]>","options: ExtractOptions<OptionsConfig[\"jsdoc\"]>","options: ExtractOptions<OptionsConfig[\"jsonc\"]>","options: ExtractOptions<OptionsConfig[\"node\"]>","config: TypedFlatConfigItem[]","options: ExtractOptions<OptionsConfig[\"perfectionist\"]>","options: ExtractOptions<OptionsConfig[\"pnpm\"]>","options: ExtractOptions<OptionsConfig[\"react\"]>","config: TypedFlatConfigItem[]","options: ExtractOptions<OptionsConfig[\"solid\"]>","options: ExtractOptions<OptionsConfig[\"stylistic\"]>","options: ExtractOptions<OptionsConfig[\"tailwindcss\"]>","options: ExtractOptions<OptionsConfig[\"tanstack\"]>","config: TypedFlatConfigItem[]","options: ExtractOptions<OptionsConfig[\"toml\"]>","options: ExtractOptions<OptionsConfig[\"typescript\"]>\n\t\t& OptionsTypeScriptParserOptions\n\t\t& OptionsTypeScriptWithTypes","parsedFiles: string[]","ignores?: string[]","options: ExtractOptions<OptionsConfig[\"unicorn\"]>","options: ExtractOptions<OptionsConfig[\"vue\"]>","options: ExtractOptions<OptionsConfig[\"yaml\"]>","options: OptionsConfig & Prettify<Pick<TypedFlatConfigItem, \"ignores\">>","configs: Array<Awaitable<TypedFlatConfigItem[]>>"],"sources":["../src/globs.ts","../src/utils.ts","../src/configs/astro.ts","../src/configs/comments.ts","../src/configs/depend.ts","../src/configs/ignores.ts","../src/configs/imports.ts","../src/configs/javascript.ts","../src/configs/jsdoc.ts","../src/configs/jsonc.ts","../src/configs/node.ts","../src/configs/perfectionist.ts","../src/configs/pnpm.ts","../src/constants.ts","../src/configs/react.ts","../src/configs/solid.ts","../src/configs/sort.ts","../src/configs/stylistic.ts","../src/configs/tailwindcss.ts","../src/configs/tanstack.ts","../src/configs/toml.ts","../src/configs/typescript.ts","../src/configs/unicorn.ts","../src/configs/vue.ts","../src/configs/yaml.ts","../src/configs/jsx.ts","../src/factory.ts"],"sourcesContent":["import { defineEnum } from \"@zayne-labs/toolkit-type-helpers\";\n\nexport const GLOB_SRC_EXT = \"?([cm])[jt]s?(x)\";\nexport const GLOB_SRC = \"**/*.?([cm])[jt]s?(x)\";\n\nexport const GLOB_JS = \"**/*.?([cm])js\";\nexport const GLOB_JSX = \"**/*.?([cm])jsx\";\n\nexport const GLOB_TS = \"**/*.?([cm])ts\";\nexport const GLOB_TSX = \"**/*.?([cm])tsx\";\n\nexport const GLOB_STYLES = \"**/*.{c,le,sc}ss\";\nexport const GLOB_CSS = \"**/*.css\";\nexport const GLOB_POSTCSS = \"**/*.{p,post}css\";\nexport const GLOB_LESS = \"**/*.less\";\nexport const GLOB_SCSS = \"**/*.scss\";\n\nexport const GLOB_JSON = \"**/*.json\";\nexport const GLOB_JSON5 = \"**/*.json5\";\nexport const GLOB_JSONC = \"**/*.jsonc\";\n\nexport const GLOB_MARKDOWN = \"**/*.md\";\nexport const GLOB_MARKDOWN_IN_MARKDOWN = \"**/*.md/*.md\";\nexport const GLOB_SVELTE = \"**/*.svelte\";\nexport const GLOB_VUE = \"**/*.vue\";\nexport const GLOB_YAML = \"**/*.y?(a)ml\";\nexport const GLOB_TOML = \"**/*.toml\";\nexport const GLOB_XML = \"**/*.xml\";\nexport const GLOB_SVG = \"**/*.svg\";\nexport const GLOB_HTML = \"**/*.htm?(l)\";\nexport const GLOB_ASTRO = \"**/*.astro\";\nexport const GLOB_ASTRO_TS = \"**/*.astro/*.ts\";\nexport const GLOB_GRAPHQL = \"**/*.{g,graph}ql\";\n\nexport const GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`;\n\nexport const GLOB_TESTS = defineEnum([\n\t`**/__tests__/**/*.${GLOB_SRC_EXT}`,\n\t`**/*.spec.${GLOB_SRC_EXT}`,\n\t`**/*.test.${GLOB_SRC_EXT}`,\n\t`**/*.bench.${GLOB_SRC_EXT}`,\n\t`**/*.benchmark.${GLOB_SRC_EXT}`,\n]);\n\nexport const GLOB_ALL_SRC = [\n\tGLOB_SRC,\n\tGLOB_STYLES,\n\tGLOB_JSON,\n\tGLOB_JSON5,\n\tGLOB_MARKDOWN,\n\tGLOB_SVELTE,\n\tGLOB_VUE,\n\tGLOB_YAML,\n\tGLOB_XML,\n\tGLOB_HTML,\n];\n\nexport const GLOB_EXCLUDE = defineEnum([\n\t\"**/node_modules\",\n\t\"**/dist\",\n\t\"**/package-lock.json\",\n\t\"**/yarn.lock\",\n\t\"**/pnpm-lock.yaml\",\n\t\"**/bun.lockb\",\n\n\t\"**/output\",\n\t\"**/coverage\",\n\t\"**/temp\",\n\t\"**/.temp\",\n\t\"**/tmp\",\n\t\"**/.tmp\",\n\t\"**/.history\",\n\t\"**/.vitepress/cache\",\n\t\"**/.nuxt\",\n\t\"**/.next\",\n\t\"**/.svelte-kit\",\n\t\"**/.vercel\",\n\t\"**/.changeset\",\n\t\"**/.idea\",\n\t\"**/.cache\",\n\t\"**/.output\",\n\t\"**/.vite-inspect\",\n\t\"**/.yarn\",\n\t\"**/vite.config.*.timestamp-*\",\n\n\t\"**/CHANGELOG*.md\",\n\t\"**/*.min.*\",\n\t\"**/LICENSE*\",\n\t\"**/__snapshots__\",\n\t\"**/auto-import?(s).d.ts\",\n\t\"**/components.d.ts\",\n]);\n","import { fileURLToPath } from \"node:url\";\nimport type { ESLint, Linter } from \"eslint\";\nimport { isPackageExists } from \"local-pkg\";\nimport type { Awaitable, Rules, TypedFlatConfigItem } from \"./types\";\n\nexport const isObject = <TObject extends Record<string, unknown>>(value: unknown): value is TObject => {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value);\n};\n\n/**\n * @description - Combine array and non-array configs into a single array.\n */\nexport const combine = async (\n\t...configs: Array<Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[]>>\n): Promise<TypedFlatConfigItem[]> => {\n\tconst resolved = await Promise.all(configs);\n\n\treturn resolved.flat();\n};\n\nexport const interopDefault = async <TModule>(\n\tmodule: Awaitable<TModule>\n): Promise<TModule extends { default: infer TDefaultExport } ? TDefaultExport : TModule> => {\n\tconst resolved = await module;\n\n\t// eslint-disable-next-line ts-eslint/no-unnecessary-condition -- casting is necessary to prevent assignability ts issues at call-site\n\treturn (resolved as { default: never }).default ?? resolved;\n};\n\n/**\n * @description - Rename plugin prefixes in a rule object.\n * Accepts a map of prefixes to rename.\n *\n * @example\n * ```ts\n * import { renameRules } from '@zayne-labs/eslint-config'\n *\n * export default [{\n * rules: renameRules(\n * {\n * '@typescript-eslint/indent': 'error'\n * },\n * { '@typescript-eslint': 'ts' }\n * )\n * }]\n * ```\n */\nexport const renameRules = (\n\trules: Record<string, unknown> | undefined,\n\trenameMap: Record<string, string>\n): (Partial<Linter.RulesRecord> & Rules) | undefined => {\n\tif (!rules) return;\n\n\tconst renamedRulesEntries = Object.entries(rules).map(([ruleKey, ruleValue]) => {\n\t\tfor (const [oldRuleName, newRuleName] of Object.entries(renameMap)) {\n\t\t\tif (ruleKey.startsWith(`${oldRuleName}/`)) {\n\t\t\t\treturn [`${newRuleName}${ruleKey.slice(oldRuleName.length)}`, ruleValue];\n\t\t\t}\n\t\t}\n\n\t\treturn [ruleKey, ruleValue];\n\t});\n\n\treturn Object.fromEntries(renamedRulesEntries) as TypedFlatConfigItem[\"rules\"];\n};\n\nexport const renamePlugins = (\n\tplugins: Record<string, unknown> | undefined,\n\trenameMap: Record<string, string>\n): Record<string, ESLint.Plugin> | undefined => {\n\tif (!plugins) return;\n\n\tconst renamedPluginEntries = Object.entries(plugins).map(([pluginKey, pluginValue]) => {\n\t\tif (pluginKey in renameMap) {\n\t\t\treturn [renameMap[pluginKey], pluginValue];\n\t\t}\n\n\t\treturn [pluginKey, pluginValue];\n\t});\n\n\treturn Object.fromEntries(renamedPluginEntries) as Record<string, ESLint.Plugin>;\n};\n\n/**\n * @description - Rename plugin names a flat configs array\n *\n * @example\n * ```ts\n * import { renamePluginInConfigs } from '@zayne-labs/eslint-config'\n * import someConfigs from './some-configs'\n *\n * export default renamePluginInConfigs(someConfigs, {\n * '@typescript-eslint': 'ts',\n * 'import-x': 'import',\n * })\n * ```\n */\nexport const renamePluginInConfigs = (options: {\n\tconfigs: TypedFlatConfigItem[];\n\toverrides?: TypedFlatConfigItem;\n\trenameMap: Record<string, string>;\n}): TypedFlatConfigItem[] => {\n\tconst { configs, overrides, renameMap } = options;\n\n\tconst renamedConfigs = configs.map((config) => ({\n\t\t...config,\n\t\t...overrides,\n\n\t\t...(isObject(config.plugins) && {\n\t\t\tplugins: renamePlugins(config.plugins, renameMap),\n\t\t}),\n\t\t...(isObject(config.rules) && {\n\t\t\trules: renameRules(config.rules, renameMap),\n\t\t}),\n\t}));\n\n\treturn renamedConfigs;\n};\n\nconst scopeUrl = fileURLToPath(new URL(\".\", import.meta.url));\nconst isCwdInScope = isPackageExists(\"@zayne-labs/eslint-config\");\n\nexport const isPackageInScope = (name: string): boolean => isPackageExists(name, { paths: [scopeUrl] });\n\n/**\n * @description\n * - Ensures that packages are installed in the current scope.\n * - If they are not installed, and the user is in a TTY, and the user is not in a CI environment,\n * and the user is in the same scope as this package, then prompt the user to\n * install the packages.\n *\n * @param packages - The packages to ensure are installed.\n */\nexport const ensurePackages = async (packages: Array<string | undefined>): Promise<void> => {\n\tif (process.env.CI || !process.stdout.isTTY || !isCwdInScope) return;\n\n\tconst nonExistingPackages = packages.filter((pkg) => pkg && !isPackageInScope(pkg));\n\n\tif (nonExistingPackages.length === 0) return;\n\n\tconst clackPrompt = await import(\"@clack/prompts\");\n\n\tconst result = await clackPrompt.confirm({\n\t\tmessage: `${nonExistingPackages.length === 1 ? \"Package is\" : \"Packages are\"} required for this config: ${nonExistingPackages.join(\", \")}. Do you want to install them?`,\n\t});\n\n\tif (result) {\n\t\tconst antfuPkg = await import(\"@antfu/install-pkg\");\n\n\t\tawait antfuPkg.installPackage(nonExistingPackages as string[], { dev: true });\n\t}\n};\n\nexport const resolveOptions = <TObject>(option: boolean | TObject | undefined) =>\n\tisObject(option) ? option : ({} as TObject);\n\n// type OverrideOptions<TConfigName extends string> = UnionDiscriminator<\n// \t[{ name: TConfigName }, { configName: TConfigName }]\n// > & {\n// \t// files?: string[];\n// \toverrides: TypedFlatConfigItem[\"rules\"];\n// };\n\n// export const createOverrideRules = <TConfigName extends string>(options: OverrideOptions<TConfigName>) => {\n// \tconst { configName, name, overrides } = options;\n\n// \tif (!isObject(overrides)) {\n// \t\treturn {} as never;\n// \t}\n\n// \treturn defineEnum({\n// \t\t// ...(files && { files }),\n// \t\tname: name ? `zayne/${name}` : `zayne/${configName}/rules/overrides`,\n// \t\trules: overrides,\n// \t}) satisfies TypedFlatConfigItem;\n// };\n","import { GLOB_ASTRO } from \"../globs\";\nimport type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"../types\";\nimport { interopDefault } from \"../utils\";\n\nexport const astro = async (\n\toptions: ExtractOptions<OptionsConfig[\"astro\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { files = [GLOB_ASTRO], overrides, typescript = true } = options;\n\n\tconst [pluginAstro, parserAstro] = await Promise.all([\n\t\tinteropDefault(import(\"eslint-plugin-astro\")),\n\t\tinteropDefault(import(\"astro-eslint-parser\")),\n\t]);\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/astro/setup\",\n\n\t\t\tplugins: {\n\t\t\t\tastro: pluginAstro,\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tlanguageOptions: {\n\t\t\t\tglobals: pluginAstro.environments.astro.globals,\n\t\t\t\tparser: parserAstro,\n\t\t\t\tparserOptions: {\n\t\t\t\t\textraFileExtensions: [\".astro\"],\n\t\t\t\t\t// eslint-disable-next-line unicorn/no-await-expression-member -- ignore for now\n\t\t\t\t\t...(typescript && { parser: (await interopDefault(import(\"typescript-eslint\"))).parser }),\n\t\t\t\t},\n\t\t\t\tsourceType: \"module\",\n\t\t\t},\n\n\t\t\tname: \"zayne/astro/recommended\",\n\n\t\t\tprocessor: typescript ? \"astro/client-side-ts\" : \"astro/astro\",\n\n\t\t\trules: pluginAstro.configs.recommended.at(-1)?.rules,\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/astro/rules\",\n\n\t\t\trules: {\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n","import { interopDefault } from \"@/utils\";\nimport type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"../types\";\n\nexport const comments = async (\n\toptions: ExtractOptions<OptionsConfig[\"comments\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, type = \"app\" } = options;\n\n\tconst eslintPluginComments = await interopDefault(\n\t\timport(\"@eslint-community/eslint-plugin-eslint-comments\")\n\t);\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/eslint-comments/rules\",\n\t\t\tplugins: {\n\t\t\t\t\"eslint-comments\": eslintPluginComments,\n\t\t\t},\n\n\t\t\trules: {\n\t\t\t\t\"eslint-comments/disable-enable-pair\": [\"error\", { allowWholeFile: true }],\n\t\t\t\t\"eslint-comments/no-aggregating-enable\": \"error\",\n\t\t\t\t\"eslint-comments/no-duplicate-disable\": \"error\",\n\t\t\t\t\"eslint-comments/no-unlimited-disable\": \"error\",\n\t\t\t\t\"eslint-comments/no-unused-enable\": \"error\",\n\n\t\t\t\t...(type !== \"app\" && {\n\t\t\t\t\t\"eslint-comments/require-description\": \"warn\",\n\t\t\t\t}),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n","import { GLOB_SRC } from \"@/globs\";\nimport type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"@/types\";\nimport { ensurePackages, interopDefault } from \"@/utils\";\n\nexport const depend = async (\n\toptions: ExtractOptions<OptionsConfig[\"depend\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { files = [GLOB_SRC], overrides } = options;\n\n\tawait ensurePackages([\"eslint-plugin-depend\"]);\n\n\tconst [eslintPluginDepend, jsoncParser] = await Promise.all([\n\t\tinteropDefault(import(\"eslint-plugin-depend\")),\n\t\tinteropDefault(import(\"jsonc-eslint-parser\")),\n\t]);\n\n\ttype PossibleConfigShape = { \"flat/recommended\": TypedFlatConfigItem | undefined };\n\n\treturn [\n\t\t{\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/depend/recommended\",\n\n\t\t\tplugins: {\n\t\t\t\tdepend: eslintPluginDepend,\n\t\t\t},\n\n\t\t\trules: {\n\t\t\t\t...(eslintPluginDepend.configs as PossibleConfigShape)[\"flat/recommended\"]?.rules,\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tfiles: [\"package.json\", \"**/package.json\"],\n\n\t\t\tlanguageOptions: {\n\t\t\t\tparser: jsoncParser,\n\t\t\t},\n\n\t\t\tname: \"zayne/depend/recommended/package-json\",\n\n\t\t\tplugins: {\n\t\t\t\tdepend: eslintPluginDepend,\n\t\t\t},\n\n\t\t\trules: {\n\t\t\t\t...(eslintPluginDepend.configs as PossibleConfigShape)[\"flat/recommended\"]?.rules,\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n","import { interopDefault } from \"@/utils\";\nimport { globalIgnores } from \"eslint/config\";\nimport { GLOB_EXCLUDE } from \"../globs\";\nimport type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"../types\";\n\nexport const ignores = (userIgnores: string[] = []): TypedFlatConfigItem[] => {\n\treturn [globalIgnores([...GLOB_EXCLUDE, ...userIgnores], \"zayne/defaults/ignores\")];\n};\n\nexport const gitIgnores = async (\n\toptions?: ExtractOptions<OptionsConfig[\"gitignore\"]>\n): Promise<TypedFlatConfigItem[]> => {\n\tconst antfuGitIgnore = await interopDefault(import(\"eslint-config-flat-gitignore\"));\n\n\tconst config = antfuGitIgnore({\n\t\tname: \"zayne/gitignore\",\n\t\tstrict: false,\n\t\t...options,\n\t});\n\n\treturn [config];\n};\n","import type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault } from \"@/utils\";\n\nconst imports = async (\n\toptions: ExtractOptions<OptionsConfig[\"imports\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, stylistic = true, typescript = true } = options;\n\n\tconst eslintPluginImportX = await interopDefault(import(\"eslint-plugin-import-x\"));\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/import/setup\",\n\n\t\t\tplugins: {\n\t\t\t\timport: eslintPluginImportX,\n\t\t\t},\n\n\t\t\t...(typescript && {\n\t\t\t\tsettings: eslintPluginImportX.flatConfigs.typescript.settings,\n\t\t\t}),\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/import/recommended\",\n\n\t\t\trules: {\n\t\t\t\t...eslintPluginImportX.flatConfigs.recommended.rules,\n\t\t\t\t...(typescript && eslintPluginImportX.flatConfigs.typescript.rules),\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/import/rules\",\n\n\t\t\trules: {\n\t\t\t\t// == This rules keeps giving issues, so off for now\n\t\t\t\t\"import/extensions\": \"off\",\n\t\t\t\t// \"import/extensions\": [\n\t\t\t\t// \t\"error\",\n\t\t\t\t// \t\"never\",\n\t\t\t\t// \t{ ignorePackages: true, pattern: { css: \"always\", png: \"always\", svg: \"always\" } },\n\t\t\t\t// ],\n\t\t\t\t\"import/first\": \"error\",\n\t\t\t\t\"import/no-absolute-path\": \"error\",\n\t\t\t\t// \"import/no-cycle\": [\"error\", { ignoreExternal: true, maxDepth: 3 }],\n\t\t\t\t\"import/no-duplicates\": \"error\",\n\t\t\t\t\"import/no-extraneous-dependencies\": [\"error\", { devDependencies: true }],\n\t\t\t\t\"import/no-mutable-exports\": \"error\",\n\t\t\t\t\"import/no-named-default\": \"error\",\n\t\t\t\t\"import/no-relative-packages\": \"error\",\n\t\t\t\t\"import/no-self-import\": \"error\",\n\t\t\t\t\"import/no-unresolved\": \"off\",\n\t\t\t\t\"import/no-useless-path-segments\": [\"error\", { commonjs: true }],\n\t\t\t\t\"import/no-webpack-loader-syntax\": \"error\",\n\n\t\t\t\t...(stylistic && { \"import/newline-after-import\": \"error\" }),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { imports };\n","import type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault } from \"@/utils\";\nimport globals from \"globals\";\n\nconst javascript = async (\n\toptions: ExtractOptions<OptionsConfig[\"javascript\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides } = options;\n\n\tconst eslintJs = await interopDefault(import(\"@eslint/js\"));\n\n\treturn [\n\t\t{\n\t\t\tlanguageOptions: {\n\t\t\t\tecmaVersion: \"latest\",\n\n\t\t\t\tglobals: {\n\t\t\t\t\t...globals.browser,\n\t\t\t\t\t...globals.node,\n\t\t\t\t\tdocument: \"readonly\",\n\t\t\t\t\tnavigator: \"readonly\",\n\t\t\t\t\twindow: \"readonly\",\n\t\t\t\t},\n\n\t\t\t\tparserOptions: {\n\t\t\t\t\tecmaVersion: \"latest\",\n\t\t\t\t\tsourceType: \"module\",\n\t\t\t\t},\n\n\t\t\t\tsourceType: \"module\",\n\t\t\t},\n\n\t\t\tlinterOptions: {\n\t\t\t\treportUnusedDisableDirectives: true,\n\t\t\t},\n\n\t\t\tname: \"zayne/js-eslint/setup\",\n\t\t},\n\t\t{\n\t\t\t...eslintJs.configs.recommended,\n\n\t\t\tname: \"zayne/js-eslint/recommended\",\n\t\t},\n\t\t{\n\t\t\tname: \"zayne/js-eslint/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"accessor-pairs\": [\"error\", { enforceForClassMembers: true, setWithoutGet: true }],\n\t\t\t\t\"array-callback-return\": [\"error\", { allowImplicit: true }],\n\t\t\t\t\"block-scoped-var\": \"error\",\n\t\t\t\t\"class-methods-use-this\": \"error\",\n\t\t\t\tcomplexity: [\"warn\", 50],\n\t\t\t\t\"constructor-super\": \"error\",\n\t\t\t\tcurly: [\"error\", \"multi-line\"],\n\t\t\t\t\"default-case\": [\"error\", { commentPattern: \"^no default$\" }],\n\t\t\t\t\"default-case-last\": \"error\",\n\t\t\t\t\"default-param-last\": \"error\",\n\t\t\t\t\"dot-notation\": [\"error\", { allowKeywords: true }],\n\t\t\t\teqeqeq: [\"error\", \"always\", { null: \"ignore\" }],\n\t\t\t\t\"grouped-accessor-pairs\": \"error\",\n\t\t\t\t\"logical-assignment-operators\": \"warn\",\n\t\t\t\t\"max-depth\": [\"error\", 2],\n\t\t\t\t\"new-cap\": [\"error\", { capIsNew: false, newIsCap: true, properties: true }],\n\t\t\t\t\"no-alert\": \"warn\",\n\t\t\t\t\"no-array-constructor\": \"error\",\n\t\t\t\t\"no-async-promise-executor\": \"error\",\n\t\t\t\t\"no-await-in-loop\": \"error\",\n\t\t\t\t\"no-caller\": \"error\",\n\t\t\t\t\"no-case-declarations\": \"error\",\n\t\t\t\t\"no-class-assign\": \"error\",\n\t\t\t\t\"no-compare-neg-zero\": \"error\",\n\t\t\t\t\"no-cond-assign\": [\"error\", \"always\"],\n\t\t\t\t\"no-console\": [\"error\", { allow: [\"warn\", \"error\", \"info\", \"trace\"] }],\n\t\t\t\t\"no-const-assign\": \"error\",\n\t\t\t\t\"no-constant-condition\": \"warn\",\n\t\t\t\t\"no-constructor-return\": \"error\",\n\t\t\t\t\"no-control-regex\": \"error\",\n\t\t\t\t\"no-debugger\": \"error\",\n\t\t\t\t\"no-delete-var\": \"error\",\n\t\t\t\t\"no-dupe-args\": \"error\",\n\t\t\t\t\"no-dupe-class-members\": \"error\",\n\t\t\t\t\"no-dupe-keys\": \"error\",\n\t\t\t\t\"no-duplicate-case\": \"error\",\n\t\t\t\t\"no-else-return\": [\"error\", { allowElseIf: false }],\n\t\t\t\t\"no-empty\": [\"error\", { allowEmptyCatch: true }],\n\t\t\t\t\"no-empty-character-class\": \"error\",\n\t\t\t\t\"no-empty-pattern\": \"error\",\n\t\t\t\t\"no-eval\": [\"error\", { allowIndirect: true }],\n\t\t\t\t\"no-ex-assign\": \"error\",\n\t\t\t\t\"no-extend-native\": \"error\",\n\t\t\t\t\"no-extra-bind\": \"error\",\n\t\t\t\t\"no-extra-boolean-cast\": \"error\",\n\t\t\t\t\"no-fallthrough\": \"error\",\n\t\t\t\t\"no-func-assign\": \"error\",\n\t\t\t\t\"no-global-assign\": \"error\",\n\t\t\t\t\"no-implicit-coercion\": \"warn\",\n\t\t\t\t\"no-implied-eval\": \"error\",\n\t\t\t\t\"no-import-assign\": \"error\",\n\t\t\t\t\"no-invalid-regexp\": \"error\",\n\t\t\t\t\"no-irregular-whitespace\": \"error\",\n\t\t\t\t\"no-iterator\": \"error\",\n\t\t\t\t\"no-labels\": [\"error\", { allowLoop: false, allowSwitch: false }],\n\t\t\t\t\"no-lone-blocks\": \"error\",\n\t\t\t\t\"no-loop-func\": \"error\",\n\t\t\t\t\"no-loss-of-precision\": \"error\",\n\t\t\t\t\"no-misleading-character-class\": \"error\",\n\t\t\t\t\"no-multi-str\": \"error\",\n\t\t\t\t\"no-new\": \"error\",\n\t\t\t\t\"no-new-func\": \"error\",\n\t\t\t\t\"no-new-native-nonconstructor\": \"error\",\n\t\t\t\t\"no-new-wrappers\": \"error\",\n\t\t\t\t\"no-obj-calls\": \"error\",\n\t\t\t\t\"no-octal\": \"error\",\n\t\t\t\t\"no-octal-escape\": \"error\",\n\t\t\t\t\"no-param-reassign\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tignorePropertyModificationsFor: [\n\t\t\t\t\t\t\t\"acc\", // for reduce accumulators\n\t\t\t\t\t\t\t\"accumulator\", // for reduce accumulators\n\t\t\t\t\t\t\t\"e\", // for e.returnvalue\n\t\t\t\t\t\t\t\"ctx\", // for Koa routing\n\t\t\t\t\t\t\t\"context\", // for Koa routing\n\t\t\t\t\t\t\t\"req\", // for Express requests\n\t\t\t\t\t\t\t\"request\", // for Express requests\n\t\t\t\t\t\t\t\"res\", // for Express responses\n\t\t\t\t\t\t\t\"response\", // for Express responses\n\t\t\t\t\t\t\t\"$scope\", // for Angular 1 scopes\n\t\t\t\t\t\t\t\"staticContext\", // for ReactRouter context\n\t\t\t\t\t\t],\n\t\t\t\t\t\tprops: true,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"no-proto\": \"error\",\n\t\t\t\t\"no-prototype-builtins\": \"error\",\n\t\t\t\t\"no-redeclare\": [\"error\", { builtinGlobals: false }],\n\t\t\t\t\"no-regex-spaces\": \"error\",\n\t\t\t\t\"no-restricted-exports\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\trestrictedNamedExports: [\n\t\t\t\t\t\t\t\"default\", // use `export default` to provide a default export\n\t\t\t\t\t\t\t\"then\", // this will cause tons of confusion when your module is dynamically `import()`ed, and will break in most node ESM versions\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"no-restricted-globals\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage:\n\t\t\t\t\t\t\t\"Use Number.isFinite instead https://github.com/airbnb/javascript#standard-library--isfinite\",\n\t\t\t\t\t\tname: \"isFinite\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage:\n\t\t\t\t\t\t\t\"Use Number.isNaN instead https://github.com/airbnb/javascript#standard-library--isnan\",\n\t\t\t\t\t\tname: \"isNaN\",\n\t\t\t\t\t},\n\t\t\t\t\t{ message: \"Use `globalThis` instead.\", name: \"global\" },\n\t\t\t\t\t{ message: \"Use `globalThis` instead.\", name: \"self\" },\n\t\t\t\t],\n\t\t\t\t\"no-restricted-imports\": [\"off\", { paths: [], patterns: [] }],\n\t\t\t\t\"no-restricted-properties\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"arguments.callee is deprecated\",\n\t\t\t\t\t\tobject: \"arguments\",\n\t\t\t\t\t\tproperty: \"callee\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isFinite instead\",\n\t\t\t\t\t\tobject: \"global\",\n\t\t\t\t\t\tproperty: \"isFinite\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isFinite instead\",\n\t\t\t\t\t\tobject: \"self\",\n\t\t\t\t\t\tproperty: \"isFinite\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isFinite instead\",\n\t\t\t\t\t\tobject: \"window\",\n\t\t\t\t\t\tproperty: \"isFinite\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isNaN instead\",\n\t\t\t\t\t\tobject: \"global\",\n\t\t\t\t\t\tproperty: \"isNaN\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isNaN instead\",\n\t\t\t\t\t\tobject: \"self\",\n\t\t\t\t\t\tproperty: \"isNaN\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isNaN instead\",\n\t\t\t\t\t\tobject: \"window\",\n\t\t\t\t\t\tproperty: \"isNaN\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Use the exponentiation operator (**) instead.\",\n\t\t\t\t\t\tobject: \"Math\",\n\t\t\t\t\t\tproperty: \"pow\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.\",\n\t\t\t\t\t\tproperty: \"__proto__\",\n\t\t\t\t\t},\n\t\t\t\t\t{ message: \"Use `Object.defineProperty` instead.\", property: \"__defineGetter__\" },\n\t\t\t\t\t{ message: \"Use `Object.defineProperty` instead.\", property: \"__defineSetter__\" },\n\t\t\t\t\t{ message: \"Use `Object.getOwnPropertyDescriptor` instead.\", property: \"__lookupGetter__\" },\n\t\t\t\t\t{ message: \"Use `Object.getOwnPropertyDescriptor` instead.\", property: \"__lookupSetter__\" },\n\t\t\t\t],\n\t\t\t\t\"no-restricted-syntax\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t\"ForInStatement\",\n\t\t\t\t\t\"LabeledStatement\",\n\t\t\t\t\t\"WithStatement\",\n\t\t\t\t\t\"TSEnumDeclaration[const=true]\",\n\t\t\t\t\t\"TSExportAssignment\",\n\t\t\t\t],\n\t\t\t\t\"no-return-assign\": [\"error\", \"except-parens\"],\n\t\t\t\t\"no-script-url\": \"error\",\n\t\t\t\t\"no-self-assign\": [\"error\", { props: true }],\n\t\t\t\t\"no-self-compare\": \"error\",\n\t\t\t\t\"no-sequences\": \"error\",\n\t\t\t\t\"no-shadow-restricted-names\": \"error\",\n\t\t\t\t\"no-sparse-arrays\": \"error\",\n\t\t\t\t\"no-template-curly-in-string\": \"error\",\n\t\t\t\t\"no-this-before-super\": \"error\",\n\t\t\t\t\"no-throw-literal\": \"error\",\n\t\t\t\t\"no-undef\": \"error\",\n\t\t\t\t\"no-undef-init\": \"error\",\n\t\t\t\t\"no-unexpected-multiline\": \"error\",\n\t\t\t\t\"no-unmodified-loop-condition\": \"error\",\n\t\t\t\t\"no-unneeded-ternary\": [\"warn\", { defaultAssignment: false }],\n\t\t\t\t\"no-unreachable\": \"error\",\n\t\t\t\t\"no-unreachable-loop\": \"error\",\n\t\t\t\t\"no-unsafe-finally\": \"error\",\n\t\t\t\t\"no-unsafe-negation\": \"error\",\n\t\t\t\t\"no-unused-expressions\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tallowShortCircuit: true,\n\t\t\t\t\t\tallowTaggedTemplates: true,\n\t\t\t\t\t\tallowTernary: true,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"no-unused-vars\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\targs: \"all\",\n\t\t\t\t\t\targsIgnorePattern: \"^_\",\n\t\t\t\t\t\tcaughtErrors: \"all\",\n\t\t\t\t\t\tdestructuredArrayIgnorePattern: \"^_\",\n\t\t\t\t\t\treportUsedIgnorePattern: true,\n\t\t\t\t\t\tvars: \"all\",\n\t\t\t\t\t\tvarsIgnorePattern: \"[iI]gnored\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"no-useless-backreference\": \"error\",\n\t\t\t\t\"no-useless-call\": \"error\",\n\t\t\t\t\"no-useless-catch\": \"error\",\n\t\t\t\t\"no-useless-computed-key\": \"error\",\n\t\t\t\t\"no-useless-concat\": \"error\",\n\t\t\t\t\"no-useless-constructor\": \"error\",\n\t\t\t\t\"no-useless-rename\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{ ignoreDestructuring: false, ignoreExport: false, ignoreImport: false },\n\t\t\t\t],\n\t\t\t\t\"no-useless-return\": \"error\",\n\t\t\t\t\"no-var\": \"error\",\n\t\t\t\t\"no-with\": \"error\",\n\t\t\t\t\"object-shorthand\": [\"error\", \"always\", { avoidQuotes: true, ignoreConstructors: false }],\n\t\t\t\t\"one-var\": [\"error\", { initialized: \"never\" }],\n\t\t\t\t\"operator-assignment\": \"warn\",\n\t\t\t\t\"prefer-arrow-callback\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tallowNamedFunctions: false,\n\t\t\t\t\t\tallowUnboundThis: true,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"prefer-const\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tdestructuring: \"all\",\n\t\t\t\t\t\tignoreReadBeforeAssign: true,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"prefer-exponentiation-operator\": \"error\",\n\t\t\t\t\"prefer-object-has-own\": \"error\",\n\t\t\t\t\"prefer-object-spread\": \"warn\",\n\t\t\t\t\"prefer-promise-reject-errors\": \"error\",\n\t\t\t\t\"prefer-regex-literals\": [\"error\", { disallowRedundantWrapping: true }],\n\t\t\t\t\"prefer-rest-params\": \"error\",\n\t\t\t\t\"prefer-spread\": \"error\",\n\t\t\t\t\"prefer-template\": \"error\",\n\t\t\t\tradix: \"error\",\n\t\t\t\t\"symbol-description\": \"error\",\n\t\t\t\t\"unicode-bom\": [\"error\", \"never\"],\n\t\t\t\t\"use-isnan\": [\"error\", { enforceForIndexOf: true, enforceForSwitchCase: true }],\n\t\t\t\t\"valid-typeof\": [\"error\", { requireStringLiterals: true }],\n\t\t\t\t\"vars-on-top\": \"error\",\n\t\t\t\tyoda: [\"error\", \"never\"],\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { javascript };\n","import type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault } from \"@/utils\";\n\nconst jsdoc = async (\n\toptions: ExtractOptions<OptionsConfig[\"jsdoc\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, stylistic = true } = options;\n\n\tconst eslintPluginJsdoc = await interopDefault(import(\"eslint-plugin-jsdoc\"));\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/jsdoc/rules\",\n\n\t\t\tplugins: {\n\t\t\t\tjsdoc: eslintPluginJsdoc,\n\t\t\t},\n\n\t\t\trules: {\n\t\t\t\t\"jsdoc/check-access\": \"warn\",\n\t\t\t\t\"jsdoc/check-param-names\": \"warn\",\n\t\t\t\t\"jsdoc/check-property-names\": \"warn\",\n\t\t\t\t\"jsdoc/check-types\": \"warn\",\n\t\t\t\t\"jsdoc/empty-tags\": \"warn\",\n\t\t\t\t\"jsdoc/implements-on-classes\": \"warn\",\n\t\t\t\t\"jsdoc/no-defaults\": \"warn\",\n\t\t\t\t\"jsdoc/no-multi-asterisks\": \"warn\",\n\t\t\t\t\"jsdoc/require-description\": [\"warn\", { descriptionStyle: \"any\" }],\n\t\t\t\t\"jsdoc/require-param-name\": \"warn\",\n\t\t\t\t\"jsdoc/require-property\": \"warn\",\n\t\t\t\t\"jsdoc/require-property-description\": \"warn\",\n\t\t\t\t\"jsdoc/require-property-name\": \"warn\",\n\t\t\t\t\"jsdoc/require-returns-check\": \"warn\",\n\t\t\t\t\"jsdoc/require-returns-description\": \"warn\",\n\t\t\t\t\"jsdoc/require-yields-check\": \"warn\",\n\n\t\t\t\t...(stylistic && {\n\t\t\t\t\t\"jsdoc/check-alignment\": \"warn\",\n\t\t\t\t\t\"jsdoc/multiline-blocks\": \"warn\",\n\t\t\t\t\t\"jsdoc/require-description\": [\"warn\", { descriptionStyle: \"tag\" }],\n\t\t\t\t}),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { jsdoc };\n","import { GLOB_JSON, GLOB_JSON5, GLOB_JSONC } from \"@/globs\";\nimport type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault } from \"@/utils\";\n\nconst jsonc = async (\n\toptions: ExtractOptions<OptionsConfig[\"jsonc\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { files = [GLOB_JSON, GLOB_JSON5, GLOB_JSONC], overrides, stylistic = true } = options;\n\n\tconst [eslintPluginJsonc, jsoncParser] = await Promise.all([\n\t\tinteropDefault(import(\"eslint-plugin-jsonc\")),\n\t\tinteropDefault(import(\"jsonc-eslint-parser\")),\n\t] as const);\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/jsonc/setup\",\n\n\t\t\tplugins: {\n\t\t\t\tjsonc: eslintPluginJsonc,\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tlanguageOptions: {\n\t\t\t\tparser: jsoncParser,\n\t\t\t},\n\n\t\t\tname: \"zayne/jsonc/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"jsonc/no-bigint-literals\": \"error\",\n\t\t\t\t\"jsonc/no-binary-expression\": \"error\",\n\t\t\t\t\"jsonc/no-binary-numeric-literals\": \"error\",\n\t\t\t\t\"jsonc/no-dupe-keys\": \"error\",\n\t\t\t\t\"jsonc/no-escape-sequence-in-identifier\": \"error\",\n\t\t\t\t\"jsonc/no-floating-decimal\": \"error\",\n\t\t\t\t\"jsonc/no-hexadecimal-numeric-literals\": \"error\",\n\t\t\t\t\"jsonc/no-infinity\": \"error\",\n\t\t\t\t\"jsonc/no-multi-str\": \"error\",\n\t\t\t\t\"jsonc/no-nan\": \"error\",\n\t\t\t\t\"jsonc/no-number-props\": \"error\",\n\t\t\t\t\"jsonc/no-numeric-separators\": \"error\",\n\t\t\t\t\"jsonc/no-octal\": \"error\",\n\t\t\t\t\"jsonc/no-octal-escape\": \"error\",\n\t\t\t\t\"jsonc/no-octal-numeric-literals\": \"error\",\n\t\t\t\t\"jsonc/no-parenthesized\": \"error\",\n\t\t\t\t\"jsonc/no-plus-sign\": \"error\",\n\t\t\t\t\"jsonc/no-regexp-literals\": \"error\",\n\t\t\t\t\"jsonc/no-sparse-arrays\": \"error\",\n\t\t\t\t\"jsonc/no-template-literals\": \"error\",\n\t\t\t\t\"jsonc/no-undefined-value\": \"error\",\n\t\t\t\t\"jsonc/no-unicode-codepoint-escapes\": \"error\",\n\t\t\t\t\"jsonc/no-useless-escape\": \"error\",\n\t\t\t\t\"jsonc/space-unary-ops\": \"error\",\n\t\t\t\t\"jsonc/valid-json-number\": \"error\",\n\t\t\t\t\"jsonc/vue-custom-block/no-parsing-error\": \"error\",\n\n\t\t\t\t...(stylistic && {\n\t\t\t\t\t\"jsonc/array-bracket-spacing\": [\"error\", \"never\"],\n\t\t\t\t\t\"jsonc/comma-dangle\": [\"error\", \"never\"],\n\t\t\t\t\t\"jsonc/comma-style\": [\"error\", \"last\"],\n\t\t\t\t\t\"jsonc/key-spacing\": [\"error\", { afterColon: true, beforeColon: false }],\n\t\t\t\t\t\"jsonc/object-curly-newline\": [\"error\", { consistent: true, multiline: true }],\n\t\t\t\t\t\"jsonc/object-curly-spacing\": [\"error\", \"always\"],\n\t\t\t\t\t\"jsonc/object-property-newline\": [\"error\", { allowMultiplePropertiesPerLine: true }],\n\t\t\t\t\t\"jsonc/quote-props\": \"error\",\n\t\t\t\t\t\"jsonc/quotes\": \"error\",\n\t\t\t\t}),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { jsonc };\n","import type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault, renameRules } from \"@/utils\";\n\nexport const node = async (\n\toptions: ExtractOptions<OptionsConfig[\"node\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, security = false, type = \"app\" } = options;\n\n\tconst [eslintPluginNode, eslintPluginSecurity] = await Promise.all([\n\t\tinteropDefault(import(\"eslint-plugin-n\")),\n\t\t...(security ? [interopDefault(import(\"eslint-plugin-security\"))] : []),\n\t]);\n\n\tconst config: TypedFlatConfigItem[] = [\n\t\t{\n\t\t\tname: \"zayne/node/recommended\",\n\n\t\t\tplugins: {\n\t\t\t\tnode: eslintPluginNode,\n\t\t\t},\n\n\t\t\trules: renameRules(eslintPluginNode.configs[\"flat/recommended-module\"].rules, {\n\t\t\t\tn: \"node\",\n\t\t\t}),\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/node/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"node/no-deprecated-api\": \"error\",\n\t\t\t\t\"node/no-exports-assign\": \"error\",\n\t\t\t\t\"node/no-extraneous-import\": \"off\", // `eslint-plugin-import-x` handles this\n\t\t\t\t\"node/no-missing-import\": \"off\",\n\t\t\t\t\"node/no-path-concat\": \"error\",\n\t\t\t\t\"node/no-unpublished-import\": \"off\",\n\t\t\t\t\"node/no-unsupported-features/es-syntax\": \"off\",\n\t\t\t\t\"node/no-unsupported-features/node-builtins\": \"off\",\n\t\t\t\t\"node/process-exit-as-throw\": \"error\",\n\n\t\t\t\t...(type === \"app-strict\" && {\n\t\t\t\t\t\"node/no-process-env\": \"error\",\n\t\t\t\t}),\n\n\t\t\t\t...(type === \"lib-strict\" && {\n\t\t\t\t\t\"node/no-unsupported-features/es-syntax\": \"error\",\n\t\t\t\t\t\"node/no-unsupported-features/node-builtins\": \"error\",\n\t\t\t\t}),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n\n\tif (security && eslintPluginSecurity) {\n\t\tconfig.push({\n\t\t\tname: \"zayne/node/security/recommended\",\n\n\t\t\tplugins: {\n\t\t\t\tsecurity: eslintPluginSecurity,\n\t\t\t},\n\n\t\t\trules: eslintPluginSecurity.configs.recommended.rules,\n\t\t});\n\t}\n\n\treturn config;\n};\n","import type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault } from \"@/utils\";\n\nconst perfectionist = async (\n\toptions: ExtractOptions<OptionsConfig[\"perfectionist\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides } = options;\n\n\tconst eslintPluginPerfectionist = await interopDefault(import(\"eslint-plugin-perfectionist\"));\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/perfectionist/rules\",\n\n\t\t\tplugins: {\n\t\t\t\tperfectionist: eslintPluginPerfectionist,\n\t\t\t},\n\n\t\t\trules: {\n\t\t\t\t\"perfectionist/sort-array-includes\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-classes\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-interfaces\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-intersection-types\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\tgroups: [\n\t\t\t\t\t\t\t\"conditional\",\n\t\t\t\t\t\t\t\"literal\",\n\t\t\t\t\t\t\t\"import\",\n\t\t\t\t\t\t\t\"intersection\",\n\t\t\t\t\t\t\t\"keyword\",\n\t\t\t\t\t\t\t\"tuple\",\n\t\t\t\t\t\t\t\"named\",\n\t\t\t\t\t\t\t\"object\",\n\t\t\t\t\t\t\t\"function\",\n\t\t\t\t\t\t\t\"operator\",\n\t\t\t\t\t\t\t\"union\",\n\t\t\t\t\t\t\t\"nullish\",\n\t\t\t\t\t\t],\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-maps\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-object-types\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-objects\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-switch-case\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-union-types\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\tgroups: [\n\t\t\t\t\t\t\t\"conditional\",\n\t\t\t\t\t\t\t\"literal\",\n\t\t\t\t\t\t\t\"import\",\n\t\t\t\t\t\t\t\"intersection\",\n\t\t\t\t\t\t\t\"keyword\",\n\t\t\t\t\t\t\t\"tuple\",\n\t\t\t\t\t\t\t\"named\",\n\t\t\t\t\t\t\t\"object\",\n\t\t\t\t\t\t\t\"function\",\n\t\t\t\t\t\t\t\"operator\",\n\t\t\t\t\t\t\t\"union\",\n\t\t\t\t\t\t\t\"nullish\",\n\t\t\t\t\t\t],\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"perfectionist/sort-variable-declarations\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t// \"perfectionist/sort-svelte-attributes\": [\n\t\t\t\t// \t\"warn\",\n\t\t\t\t// \t{\n\t\t\t\t// \t\torder: \"asc\",\n\t\t\t\t// \t\ttype: \"alphabetical\",\n\t\t\t\t// \t},\n\t\t\t\t// ],\n\t\t\t\t// \"perfectionist/sort-astro-attributes\": [\n\t\t\t\t// \t\"warn\",\n\t\t\t\t// \t{\n\t\t\t\t// \t\torder: \"asc\",\n\t\t\t\t// \t\ttype: \"alphabetical\",\n\t\t\t\t// \t},\n\t\t\t\t// ],\n\t\t\t\t// \"perfectionist/sort-vue-attributes\": [\n\t\t\t\t// \t\"warn\",\n\t\t\t\t// \t{\n\t\t\t\t// \t\torder: \"asc\",\n\t\t\t\t// \t\ttype: \"alphabetical\",\n\t\t\t\t// \t},\n\t\t\t\t// ],\n\t\t\t\t// \"perfectionist/sort-jsx-props\": [\n\t\t\t\t// \t\"warn\",\n\t\t\t\t// \t{\n\t\t\t\t// \t\t// ignorePattern: [\"src\"],\n\t\t\t\t// \t\torder: \"asc\",\n\t\t\t\t// \t\ttype: \"alphabetical\",\n\t\t\t\t// \t},\n\t\t\t\t// ],\n\t\t\t},\n\n\t\t\t...overrides,\n\t\t},\n\t];\n};\n\nexport { perfectionist };\n","import type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"@/types\";\nimport { ensurePackages, interopDefault } from \"@/utils\";\n\nexport async function pnpm(\n\toptions: ExtractOptions<OptionsConfig[\"pnpm\"]> = {}\n): Promise<TypedFlatConfigItem[]> {\n\tconst { overrides } = options;\n\n\tawait ensurePackages([\"eslint-plugin-pnpm\"]);\n\n\tconst [eslintPluginPnpm, yamlParser, jsoncParser] = await Promise.all([\n\t\tinteropDefault(import(\"eslint-plugin-pnpm\")),\n\t\tinteropDefault(import(\"yaml-eslint-parser\")),\n\t\tinteropDefault(import(\"jsonc-eslint-parser\")),\n\t]);\n\n\treturn [\n\t\t{\n\t\t\tfiles: [\"package.json\", \"**/package.json\"],\n\n\t\t\tlanguageOptions: {\n\t\t\t\tparser: jsoncParser,\n\t\t\t},\n\n\t\t\tname: \"zayne/pnpm/rules/package-json\",\n\n\t\t\tplugins: {\n\t\t\t\tpnpm: eslintPluginPnpm,\n\t\t\t},\n\t\t\trules: {\n\t\t\t\t\"pnpm/json-enforce-catalog\": \"error\",\n\t\t\t\t\"pnpm/json-prefer-workspace-settings\": \"error\",\n\t\t\t\t\"pnpm/json-valid-catalog\": \"error\",\n\n\t\t\t\t...overrides?.json,\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tfiles: [\"pnpm-workspace.yaml\"],\n\n\t\t\tlanguageOptions: {\n\t\t\t\tparser: yamlParser,\n\t\t\t},\n\n\t\t\tname: \"zayne/pnpm/rules/pnpm-workspace-yaml\",\n\n\t\t\tplugins: {\n\t\t\t\tpnpm: eslintPluginPnpm,\n\t\t\t},\n\t\t\trules: {\n\t\t\t\t\"pnpm/yaml-no-duplicate-catalog-item\": \"error\",\n\t\t\t\t\"pnpm/yaml-no-unused-catalog-item\": \"error\",\n\n\t\t\t\t...overrides?.yaml,\n\t\t\t},\n\t\t},\n\t];\n}\n","import { defineEnum } from \"@zayne-labs/toolkit-type-helpers\";\n\nexport const defaultPluginRenameMap = defineEnum({\n\t\"@eslint-react/debug\": \"react-debug\",\n\t\"@eslint-react/dom\": \"react-dom\",\n\t\"@eslint-react/hooks-extra\": \"react-hooks-extra\",\n\t\"@eslint-react/naming-convention\": \"react-naming-convention\",\n\t\"@eslint-react/web-api\": \"react-web-api\",\n\t/* eslint-disable perfectionist/sort-objects -- @eslint-react has to be below the rest to avoid plugin rename issues */\n\t\"@eslint-react\": \"react\",\n\t/* eslint-enable perfectionist/sort-objects -- @eslint-react has to be below the rest to avoid plugin rename issues */\n\n\t\"@next/next\": \"nextjs-next\",\n\n\t\"@stylistic\": \"stylistic\",\n\n\t\"@tanstack/query\": \"tanstack-query\",\n\n\t\"@typescript-eslint\": \"ts-eslint\",\n\n\t\"import-x\": \"import\",\n\n\tn: \"node\",\n});\n","import { defaultPluginRenameMap } from \"@/constants\";\nimport { GLOB_SRC } from \"@/globs\";\nimport type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"@/types\";\nimport { ensurePackages, interopDefault, renamePlugins, renameRules } from \"@/utils\";\nimport { fixupPluginRules } from \"@eslint/compat\";\nimport { isPackageExists } from \"local-pkg\";\n\n// react refresh\nconst ReactRefreshAllowConstantExportPackages = [\"vite\"];\nconst RemixPackages = [\"@remix-run/node\", \"@remix-run/react\", \"@remix-run/serve\", \"@remix-run/dev\"];\nconst NextJsPackages = [\"next\"];\n\nconst isAllowConstantExport = ReactRefreshAllowConstantExportPackages.some((i) => isPackageExists(i));\nconst isUsingRemix = RemixPackages.some((i) => isPackageExists(i));\nconst isUsingNext = NextJsPackages.some((i) => isPackageExists(i));\n\nconst react = async (\n\toptions: ExtractOptions<OptionsConfig[\"react\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst {\n\t\tcompiler = false,\n\t\tfiles = [GLOB_SRC],\n\t\tnextjs = isUsingNext,\n\t\toverrides,\n\t\trefresh = true,\n\t\ttypescript = true,\n\t} = options;\n\n\tawait ensurePackages([\n\t\t\"@eslint-react/eslint-plugin\",\n\t\t\"eslint-plugin-react-hooks\",\n\t\t...(refresh ? [\"eslint-plugin-react-refresh\"] : []),\n\t\t...(nextjs ? [\"@next/eslint-plugin-next\"] : []),\n\t]);\n\n\tconst [eslintPluginReact, eslintReactHooks, eslintPluginReactRefresh] = await Promise.all([\n\t\tinteropDefault(import(\"@eslint-react/eslint-plugin\")),\n\t\tinteropDefault(import(\"eslint-plugin-react-hooks\")),\n\t\t...(refresh ? [interopDefault(import(\"eslint-plugin-react-refresh\"))] : []),\n\t]);\n\n\tconst eslintPluginNextjs = nextjs && (await interopDefault(import(\"@next/eslint-plugin-next\")));\n\n\t// prettier-ignore\n\tconst recommendedReactConfig = eslintPluginReact.configs[typescript ? \"recommended-type-checked\" : \"recommended\"];\n\n\tconst config: TypedFlatConfigItem[] = [\n\t\t{\n\t\t\tname: \"zayne/react/setup\",\n\n\t\t\tplugins: {\n\t\t\t\t...renamePlugins(recommendedReactConfig.plugins, defaultPluginRenameMap),\n\t\t\t\t\"react-hooks\": eslintReactHooks,\n\t\t\t},\n\n\t\t\tsettings: recommendedReactConfig.settings,\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tlanguageOptions: {\n\t\t\t\tparserOptions: {\n\t\t\t\t\tecmaFeatures: {\n\t\t\t\t\t\tjsx: true,\n\t\t\t\t\t},\n\n\t\t\t\t\tsourceType: \"module\",\n\n\t\t\t\t\t// eslint-disable-next-line unicorn/no-await-expression-member -- ignore for now\n\t\t\t\t\t...(typescript && { parser: (await interopDefault(import(\"typescript-eslint\"))).parser }),\n\t\t\t\t},\n\t\t\t},\n\n\t\t\tname: \"zayne/react/setup-processor\",\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/react/recommended\",\n\n\t\t\trules: renameRules(recommendedReactConfig.rules, defaultPluginRenameMap),\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/react/rules\",\n\n\t\t\trules: {\n\t\t\t\t// Hook Extra rules\n\t\t\t\t\"react-hooks-extra/ensure-custom-hooks-using-other-hooks\": \"error\",\n\t\t\t\t\"react-hooks-extra/no-unnecessary-use-callback\": \"warn\",\n\t\t\t\t\"react-hooks-extra/no-unnecessary-use-memo\": \"warn\",\n\t\t\t\t\"react-hooks-extra/prefer-use-state-lazy-initialization\": \"error\",\n\n\t\t\t\t// Hook rules\n\t\t\t\t\"react-hooks/exhaustive-deps\": \"warn\",\n\t\t\t\t\"react-hooks/rules-of-hooks\": \"error\",\n\n\t\t\t\t// Naming convention rules\n\t\t\t\t\"react-naming-convention/component-name\": \"warn\",\n\t\t\t\t\"react-naming-convention/use-state\": \"off\",\n\n\t\t\t\t// Regular React rules\n\t\t\t\t\"react/avoid-shorthand-boolean\": \"error\",\n\t\t\t\t\"react/function-component-definition\": \"off\",\n\t\t\t\t\"react/no-array-index-key\": \"error\",\n\t\t\t\t\"react/no-children-count\": \"off\",\n\t\t\t\t\"react/no-children-only\": \"off\",\n\t\t\t\t\"react/no-children-prop\": \"error\",\n\t\t\t\t\"react/no-clone-element\": \"off\",\n\t\t\t\t\"react/no-complex-conditional-rendering\": \"warn\",\n\t\t\t\t\"react/no-missing-component-display-name\": \"error\",\n\t\t\t\t\"react/no-useless-fragment\": \"error\",\n\t\t\t\t\"react/prefer-destructuring-assignment\": \"error\",\n\t\t\t\t\"react/prefer-read-only-props\": \"off\",\n\t\t\t\t\"react/prefer-shorthand-fragment\": \"error\",\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n\n\tif (refresh && eslintPluginReactRefresh) {\n\t\tconfig.push({\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/react/refresh\",\n\n\t\t\tplugins: {\n\t\t\t\t\"react-refresh\": eslintPluginReactRefresh,\n\t\t\t},\n\n\t\t\trules: {\n\t\t\t\t\"react-refresh/only-export-components\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\tallowConstantExport: isAllowConstantExport,\n\t\t\t\t\t\tallowExportNames: [\n\t\t\t\t\t\t\t...(isUsingNext\n\t\t\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\t\t\t\"dynamic\",\n\t\t\t\t\t\t\t\t\t\t\"dynamicParams\",\n\t\t\t\t\t\t\t\t\t\t\"revalidate\",\n\t\t\t\t\t\t\t\t\t\t\"fetchCache\",\n\t\t\t\t\t\t\t\t\t\t\"runtime\",\n\t\t\t\t\t\t\t\t\t\t\"preferredRegion\",\n\t\t\t\t\t\t\t\t\t\t\"maxDuration\",\n\t\t\t\t\t\t\t\t\t\t\"config\",\n\t\t\t\t\t\t\t\t\t\t\"generateStaticParams\",\n\t\t\t\t\t\t\t\t\t\t\"metadata\",\n\t\t\t\t\t\t\t\t\t\t\"generateMetadata\",\n\t\t\t\t\t\t\t\t\t\t\"viewport\",\n\t\t\t\t\t\t\t\t\t\t\"generateViewport\",\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t: []),\n\t\t\t\t\t\t\t...(isUsingRemix ? [\"meta\", \"links\", \"headers\", \"loader\", \"action\"] : []),\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t});\n\t}\n\n\tif (compiler) {\n\t\tconfig.push({\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/react/compiler\",\n\n\t\t\trules: {\n\t\t\t\t\"react-hooks/react-compiler\": \"error\",\n\t\t\t},\n\t\t});\n\t}\n\n\tif (nextjs && eslintPluginNextjs) {\n\t\tconfig.push({\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/react/nextjs\",\n\n\t\t\tplugins: {\n\t\t\t\t\"nextjs-next\": fixupPluginRules(eslintPluginNextjs),\n\t\t\t},\n\n\t\t\trules: renameRules(\n\t\t\t\t// eslint-disable-next-line ts-eslint/no-unsafe-argument -- missing types\n\t\t\t\t{\n\t\t\t\t\t// @ts-expect-error -- missing types\n\t\t\t\t\t// eslint-disable-next-line ts-eslint/no-unsafe-member-access -- missing types\n\t\t\t\t\t...eslintPluginNextjs.configs?.recommended?.rules,\n\n\t\t\t\t\t// @ts-expect-error -- missing types\n\t\t\t\t\t// eslint-disable-next-line ts-eslint/no-unsafe-member-access -- missing types\n\t\t\t\t\t...eslintPluginNextjs.configs?.[\"core-web-vitals\"]?.rules,\n\t\t\t\t},\n\t\t\t\tdefaultPluginRenameMap\n\t\t\t),\n\t\t});\n\t}\n\n\treturn config;\n};\n\nexport { react };\n","import { GLOB_SRC } from \"../globs\";\nimport type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"../types\";\nimport { ensurePackages, interopDefault } from \"../utils\";\n\nconst solid = async (\n\toptions: ExtractOptions<OptionsConfig[\"solid\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { files = [GLOB_SRC], overrides, typescript = true } = options;\n\n\tawait ensurePackages([\"eslint-plugin-solid\"]);\n\n\tconst eslintPluginSolid = await interopDefault(import(\"eslint-plugin-solid\"));\n\n\tconst recommendedSolidConfig =\n\t\teslintPluginSolid.configs[typescript ? \"flat/typescript\" : \"flat/recommended\"];\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/solid/setup\",\n\n\t\t\tplugins: {\n\t\t\t\tsolid: eslintPluginSolid,\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/solid/recommended\",\n\n\t\t\trules: recommendedSolidConfig.rules,\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/solid/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"solid/no-innerhtml\": [\"error\", { allowStatic: true }],\n\t\t\t\t\"solid/style-prop\": [\"error\", { styleProps: [\"style\", \"css\"] }],\n\t\t\t},\n\n\t\t\t...overrides,\n\t\t},\n\t];\n};\n\nexport { solid };\n","import type { TypedFlatConfigItem } from \"@/types\";\n\n/**\n * @description - Sort package.json\n *\n * Requires `jsonc` config\n */\nexport const sortPackageJson = (): TypedFlatConfigItem[] => [\n\t{\n\t\tfiles: [\"**/package.json\"],\n\n\t\tname: \"zayne/sort/package.json\",\n\n\t\trules: {\n\t\t\t\"jsonc/sort-array-values\": [\n\t\t\t\t\"error\",\n\t\t\t\t{\n\t\t\t\t\torder: { type: \"asc\" },\n\t\t\t\t\tpathPattern: \"^files$\",\n\t\t\t\t},\n\t\t\t],\n\t\t\t\"jsonc/sort-keys\": [\n\t\t\t\t\"error\",\n\t\t\t\t{\n\t\t\t\t\torder: [\n\t\t\t\t\t\t\"publisher\",\n\t\t\t\t\t\t\"name\",\n\t\t\t\t\t\t\"displayName\",\n\t\t\t\t\t\t\"type\",\n\t\t\t\t\t\t\"version\",\n\t\t\t\t\t\t\"private\",\n\t\t\t\t\t\t\"packageManager\",\n\t\t\t\t\t\t\"description\",\n\t\t\t\t\t\t\"author\",\n\t\t\t\t\t\t\"contributors\",\n\t\t\t\t\t\t\"license\",\n\t\t\t\t\t\t\"funding\",\n\t\t\t\t\t\t\"homepage\",\n\t\t\t\t\t\t\"repository\",\n\t\t\t\t\t\t\"bugs\",\n\t\t\t\t\t\t\"keywords\",\n\t\t\t\t\t\t\"categories\",\n\t\t\t\t\t\t\"sideEffects\",\n\t\t\t\t\t\t\"exports\",\n\t\t\t\t\t\t\"main\",\n\t\t\t\t\t\t\"module\",\n\t\t\t\t\t\t\"unpkg\",\n\t\t\t\t\t\t\"jsdelivr\",\n\t\t\t\t\t\t\"types\",\n\t\t\t\t\t\t\"typesVersions\",\n\t\t\t\t\t\t\"bin\",\n\t\t\t\t\t\t\"icon\",\n\t\t\t\t\t\t\"files\",\n\t\t\t\t\t\t\"engines\",\n\t\t\t\t\t\t\"activationEvents\",\n\t\t\t\t\t\t\"contributes\",\n\t\t\t\t\t\t\"scripts\",\n\t\t\t\t\t\t\"peerDependencies\",\n\t\t\t\t\t\t\"peerDependenciesMeta\",\n\t\t\t\t\t\t\"dependencies\",\n\t\t\t\t\t\t\"optionalDependencies\",\n\t\t\t\t\t\t\"devDependencies\",\n\t\t\t\t\t\t\"pnpm\",\n\t\t\t\t\t\t\"overrides\",\n\t\t\t\t\t\t\"resolutions\",\n\t\t\t\t\t\t\"husky\",\n\t\t\t\t\t\t\"simple-git-hooks\",\n\t\t\t\t\t\t\"lint-staged\",\n\t\t\t\t\t\t\"eslintConfig\",\n\t\t\t\t\t],\n\t\t\t\t\tpathPattern: \"^$\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: { type: \"asc\" },\n\t\t\t\t\tpathPattern: \"^(?:dev|peer|optional|bundled)?[Dd]ependencies(Meta)?$\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: { type: \"asc\" },\n\t\t\t\t\tpathPattern: \"scripts\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: { type: \"asc\" },\n\t\t\t\t\tpathPattern: \"^(?:resolutions|overrides|pnpm.overrides)$\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: [\"types\", \"import\", \"require\", \"default\"],\n\t\t\t\t\tpathPattern: \"^exports.*$\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: [\n\t\t\t\t\t\t// client hooks only\n\t\t\t\t\t\t\"pre-commit\",\n\t\t\t\t\t\t\"prepare-commit-msg\",\n\t\t\t\t\t\t\"commit-msg\",\n\t\t\t\t\t\t\"post-commit\",\n\t\t\t\t\t\t\"pre-rebase\",\n\t\t\t\t\t\t\"post-rewrite\",\n\t\t\t\t\t\t\"post-checkout\",\n\t\t\t\t\t\t\"post-merge\",\n\t\t\t\t\t\t\"pre-push\",\n\t\t\t\t\t\t\"pre-auto-gc\",\n\t\t\t\t\t],\n\t\t\t\t\tpathPattern: \"^(?:gitHooks|husky|simple-git-hooks)$\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t},\n];\n\n/**\n * Sort tsconfig.json\n *\n * Requires `jsonc` config\n */\n\nexport const sortTsconfig = (): TypedFlatConfigItem[] => [\n\t{\n\t\tfiles: [\"**/tsconfig.json\", \"**/tsconfig.*.json\"],\n\n\t\tname: \"zayne/sort/tsconfig.json\",\n\n\t\trules: {\n\t\t\t\"jsonc/sort-keys\": [\n\t\t\t\t\"error\",\n\t\t\t\t{\n\t\t\t\t\torder: [\"extends\", \"compilerOptions\", \"references\", \"files\", \"include\", \"exclude\"],\n\t\t\t\t\tpathPattern: \"^$\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: [\n\t\t\t\t\t\t/* Projects */\n\t\t\t\t\t\t\"incremental\",\n\t\t\t\t\t\t\"composite\",\n\t\t\t\t\t\t\"tsBuildInfoFile\",\n\t\t\t\t\t\t\"disableSourceOfProjectReferenceRedirect\",\n\t\t\t\t\t\t\"disableSolutionSearching\",\n\t\t\t\t\t\t\"disableReferencedProjectLoad\",\n\t\t\t\t\t\t/* Language and Environment */\n\t\t\t\t\t\t\"target\",\n\t\t\t\t\t\t\"jsx\",\n\t\t\t\t\t\t\"jsxFactory\",\n\t\t\t\t\t\t\"jsxFragmentFactory\",\n\t\t\t\t\t\t\"jsxImportSource\",\n\t\t\t\t\t\t\"lib\",\n\t\t\t\t\t\t\"moduleDetection\",\n\t\t\t\t\t\t\"noLib\",\n\t\t\t\t\t\t\"reactNamespace\",\n\t\t\t\t\t\t\"useDefineForClassFields\",\n\t\t\t\t\t\t\"emitDecoratorMetadata\",\n\t\t\t\t\t\t\"experimentalDecorators\",\n\t\t\t\t\t\t/* Modules */\n\t\t\t\t\t\t\"baseUrl\",\n\t\t\t\t\t\t\"rootDir\",\n\t\t\t\t\t\t\"rootDirs\",\n\t\t\t\t\t\t\"customConditions\",\n\t\t\t\t\t\t\"module\",\n\t\t\t\t\t\t\"moduleResolution\",\n\t\t\t\t\t\t\"moduleSuffixes\",\n\t\t\t\t\t\t\"noResolve\",\n\t\t\t\t\t\t\"paths\",\n\t\t\t\t\t\t\"resolveJsonModule\",\n\t\t\t\t\t\t\"resolvePackageJsonExports\",\n\t\t\t\t\t\t\"resolvePackageJsonImports\",\n\t\t\t\t\t\t\"typeRoots\",\n\t\t\t\t\t\t\"types\",\n\t\t\t\t\t\t\"allowArbitraryExtensions\",\n\t\t\t\t\t\t\"allowImportingTsExtensions\",\n\t\t\t\t\t\t\"allowUmdGlobalAccess\",\n\t\t\t\t\t\t/* JavaScript Support */\n\t\t\t\t\t\t\"allowJs\",\n\t\t\t\t\t\t\"checkJs\",\n\t\t\t\t\t\t\"maxNodeModuleJsDepth\",\n\t\t\t\t\t\t/* Type Checking */\n\t\t\t\t\t\t\"strict\",\n\t\t\t\t\t\t\"strictBindCallApply\",\n\t\t\t\t\t\t\"strictFunctionTypes\",\n\t\t\t\t\t\t\"strictNullChecks\",\n\t\t\t\t\t\t\"strictPropertyInitialization\",\n\t\t\t\t\t\t\"allowUnreachableCode\",\n\t\t\t\t\t\t\"allowUnusedLabels\",\n\t\t\t\t\t\t\"alwaysStrict\",\n\t\t\t\t\t\t\"exactOptionalPropertyTypes\",\n\t\t\t\t\t\t\"noFallthroughCasesInSwitch\",\n\t\t\t\t\t\t\"noImplicitAny\",\n\t\t\t\t\t\t\"noImplicitOverride\",\n\t\t\t\t\t\t\"noImplicitReturns\",\n\t\t\t\t\t\t\"noImplicitThis\",\n\t\t\t\t\t\t\"noPropertyAccessFromIndexSignature\",\n\t\t\t\t\t\t\"noUncheckedIndexedAccess\",\n\t\t\t\t\t\t\"noUnusedLocals\",\n\t\t\t\t\t\t\"noUnusedParameters\",\n\t\t\t\t\t\t\"useUnknownInCatchVariables\",\n\t\t\t\t\t\t/* Emit */\n\t\t\t\t\t\t\"declaration\",\n\t\t\t\t\t\t\"declarationDir\",\n\t\t\t\t\t\t\"declarationMap\",\n\t\t\t\t\t\t\"downlevelIteration\",\n\t\t\t\t\t\t\"emitBOM\",\n\t\t\t\t\t\t\"emitDeclarationOnly\",\n\t\t\t\t\t\t\"importHelpers\",\n\t\t\t\t\t\t\"importsNotUsedAsValues\",\n\t\t\t\t\t\t\"inlineSourceMap\",\n\t\t\t\t\t\t\"inlineSources\",\n\t\t\t\t\t\t\"mapRoot\",\n\t\t\t\t\t\t\"newLine\",\n\t\t\t\t\t\t\"noEmit\",\n\t\t\t\t\t\t\"noEmitHelpers\",\n\t\t\t\t\t\t\"noEmitOnError\",\n\t\t\t\t\t\t\"outDir\",\n\t\t\t\t\t\t\"outFile\",\n\t\t\t\t\t\t\"preserveConstEnums\",\n\t\t\t\t\t\t\"preserveValueImports\",\n\t\t\t\t\t\t\"removeComments\",\n\t\t\t\t\t\t\"sourceMap\",\n\t\t\t\t\t\t\"sourceRoot\",\n\t\t\t\t\t\t\"stripInternal\",\n\t\t\t\t\t\t/* Interop Constraints */\n\t\t\t\t\t\t\"allowSyntheticDefaultImports\",\n\t\t\t\t\t\t\"esModuleInterop\",\n\t\t\t\t\t\t\"forceConsistentCasingInFileNames\",\n\t\t\t\t\t\t\"isolatedDeclarations\",\n\t\t\t\t\t\t\"isolatedModules\",\n\t\t\t\t\t\t\"preserveSymlinks\",\n\t\t\t\t\t\t\"verbatimModuleSyntax\",\n\t\t\t\t\t\t/* Completeness */\n\t\t\t\t\t\t\"skipDefaultLibCheck\",\n\t\t\t\t\t\t\"skipLibCheck\",\n\t\t\t\t\t],\n\t\t\t\t\tpathPattern: \"^compilerOptions$\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t},\n];\n","import type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault } from \"@/utils\";\n\nconst stylistic = async (\n\toptions: ExtractOptions<OptionsConfig[\"stylistic\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { jsx = true, overrides } = options;\n\tconst eslintPluginStylistic = await interopDefault(import(\"@stylistic/eslint-plugin\"));\n\n\treturn [\n\t\t// == Stylistic Rules (Optional)\n\t\t{\n\t\t\tname: \"zayne/stylistic/rules\",\n\n\t\t\tplugins: {\n\t\t\t\tstylistic: eslintPluginStylistic,\n\t\t\t},\n\n\t\t\trules: {\n\t\t\t\t\"stylistic/no-floating-decimal\": \"error\",\n\t\t\t\t\"stylistic/spaced-comment\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t\"always\",\n\t\t\t\t\t{\n\t\t\t\t\t\tblock: {\n\t\t\t\t\t\t\tbalanced: true,\n\t\t\t\t\t\t\texceptions: [\"*\"],\n\t\t\t\t\t\t\tmarkers: [\"!\"],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tline: {\n\t\t\t\t\t\t\texceptions: [\"/\", \"#\"],\n\t\t\t\t\t\t\tmarkers: [\"/\"],\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t...(jsx && {\n\t\t\t\t\t\"stylistic/jsx-self-closing-comp\": \"warn\",\n\t\t\t\t}),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { stylistic };\n","import type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"@/types\";\nimport { ensurePackages, interopDefault } from \"@/utils\";\n\nconst tailwindcss = async (\n\toptions: ExtractOptions<OptionsConfig[\"tailwindcss\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, settings: tailwindCssSettings } = options;\n\n\tawait ensurePackages([\"eslint-plugin-tailwindcss\"]);\n\n\tconst eslintPluginTailwindCss = await interopDefault(import(\"eslint-plugin-tailwindcss\"));\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/tailwindcss/setup\",\n\t\t\tplugins: {\n\t\t\t\ttailwindcss: eslintPluginTailwindCss,\n\t\t\t},\n\t\t\tsettings: {\n\t\t\t\ttailwindcss: {\n\t\t\t\t\tcallees: [\"tv\", \"cnMerge\", \"cn\", \"cnJoin\", \"twMerge\", \"twJoin\"],\n\t\t\t\t\tclassRegex: \"^class(Name|Names)?$\",\n\t\t\t\t\tcssFiles: [],\n\t\t\t\t\tremoveDuplicates: false, // Turned off cuz prettier already handles this via plugin\n\t\t\t\t\t...tailwindCssSettings,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/tailwindcss/recommended\",\n\n\t\t\trules: eslintPluginTailwindCss.configs[\"flat/recommended\"][1]?.rules,\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/tailwindcss/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"tailwindcss/no-contradicting-classname\": \"off\", // Turned off cuz tw intellisense already handles this\n\t\t\t\t\"tailwindcss/no-custom-classname\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{ ignoredKeys: [\"compoundVariants\", \"defaultVariants\", \"responsiveVariants\"] },\n\t\t\t\t],\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { tailwindcss };\n","import type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"@/types\";\nimport { ensurePackages, interopDefault, renameRules } from \"@/utils\";\nimport { defaultPluginRenameMap } from \"../constants\";\n\nconst tanstack = async (\n\toptions: ExtractOptions<OptionsConfig[\"tanstack\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, query = true } = options;\n\n\tconst config: TypedFlatConfigItem[] = [];\n\n\tawait ensurePackages([...(query ? [\"@tanstack/eslint-plugin-query\"] : [])]);\n\n\tconst [eslintPluginTanstackQuery] = await Promise.all(\n\t\tquery ? [interopDefault(import(\"@tanstack/eslint-plugin-query\"))] : []\n\t);\n\n\tif (query && eslintPluginTanstackQuery) {\n\t\tconfig.push(\n\t\t\t{\n\t\t\t\tname: \"zayne/tanstack-query/recommended\",\n\n\t\t\t\tplugins: {\n\t\t\t\t\t\"tanstack-query\": eslintPluginTanstackQuery,\n\t\t\t\t},\n\n\t\t\t\trules: renameRules(\n\t\t\t\t\teslintPluginTanstackQuery.configs[\"flat/recommended\"][0]?.rules,\n\t\t\t\t\tdefaultPluginRenameMap\n\t\t\t\t),\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tname: \"zayne/tanstack-query/rules\",\n\n\t\t\t\trules: {\n\t\t\t\t\t...overrides,\n\t\t\t\t},\n\t\t\t}\n\t\t);\n\t}\n\n\treturn config;\n};\n\nexport { tanstack };\n","import { GLOB_TOML } from \"../globs\";\nimport type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"../types\";\nimport { interopDefault } from \"../utils\";\n\nexport const toml = async (\n\toptions: ExtractOptions<OptionsConfig[\"toml\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { files = [GLOB_TOML], overrides, stylistic = true } = options;\n\n\tconst [pluginToml, parserToml] = await Promise.all([\n\t\tinteropDefault(import(\"eslint-plugin-toml\")),\n\t\tinteropDefault(import(\"toml-eslint-parser\")),\n\t]);\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/toml/setup\",\n\n\t\t\tplugins: {\n\t\t\t\ttoml: pluginToml,\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tlanguageOptions: {\n\t\t\t\tparser: parserToml,\n\t\t\t},\n\n\t\t\tname: \"zayne/toml/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"style/spaced-comment\": \"off\",\n\n\t\t\t\t\"toml/comma-style\": \"error\",\n\t\t\t\t\"toml/keys-order\": \"error\",\n\t\t\t\t\"toml/no-space-dots\": \"error\",\n\t\t\t\t\"toml/no-unreadable-number-separator\": \"error\",\n\t\t\t\t\"toml/precision-of-fractional-seconds\": \"error\",\n\t\t\t\t\"toml/precision-of-integer\": \"error\",\n\t\t\t\t\"toml/tables-order\": \"error\",\n\n\t\t\t\t\"toml/vue-custom-block/no-parsing-error\": \"error\",\n\n\t\t\t\t...(stylistic && {\n\t\t\t\t\t\"toml/array-bracket-newline\": \"error\",\n\t\t\t\t\t\"toml/array-bracket-spacing\": \"error\",\n\t\t\t\t\t\"toml/array-element-newline\": \"error\",\n\t\t\t\t\t// \"toml/indent\": [\"error\", indent],\n\t\t\t\t\t\"toml/inline-table-curly-spacing\": \"error\",\n\t\t\t\t\t\"toml/key-spacing\": \"error\",\n\t\t\t\t\t\"toml/padding-line-between-pairs\": \"error\",\n\t\t\t\t\t\"toml/padding-line-between-tables\": \"error\",\n\t\t\t\t\t\"toml/quoted-keys\": \"error\",\n\t\t\t\t\t\"toml/spaced-comment\": \"error\",\n\t\t\t\t\t\"toml/table-bracket-spacing\": \"error\",\n\t\t\t\t}),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n","import { interopDefault, renamePluginInConfigs } from \"@/utils\";\nimport { GLOB_ASTRO_TS, GLOB_MARKDOWN, GLOB_TS, GLOB_TSX } from \"../globs\";\nimport type {\n\tExtractOptions,\n\tOptionsConfig,\n\tOptionsTypeScriptParserOptions,\n\tOptionsTypeScriptWithTypes,\n\tTypedFlatConfigItem,\n} from \"../types\";\n\nexport const typescript = async (\n\toptions: ExtractOptions<OptionsConfig[\"typescript\"]>\n\t\t& OptionsTypeScriptParserOptions\n\t\t& OptionsTypeScriptWithTypes = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst {\n\t\tallowDefaultProject,\n\t\tcomponentExts = [],\n\t\tfiles = [GLOB_TS, GLOB_TSX, ...componentExts.map((ext) => `**/*.${ext}`)],\n\t\tfilesTypeAware = [GLOB_TS, GLOB_TSX, ...componentExts.map((ext) => `**/*.${ext}`)],\n\t\tignoresTypeAware = [`${GLOB_MARKDOWN}/**`, GLOB_ASTRO_TS],\n\t\toverrides,\n\t\toverridesTypeAware,\n\t\tparserOptions,\n\t\tstylistic = true,\n\t\ttsconfigPath,\n\t} = options;\n\n\tconst isTypeAware = Boolean(tsconfigPath);\n\n\tconst tsEslint = await interopDefault(import(\"typescript-eslint\"));\n\n\tconst projectServiceObject =\n\t\tisTypeAware\n\t\t&& (allowDefaultProject\n\t\t\t? {\n\t\t\t\t\tprojectService: {\n\t\t\t\t\t\tallowDefaultProject,\n\t\t\t\t\t\tdefaultProject: tsconfigPath,\n\t\t\t\t\t},\n\t\t\t\t\ttsconfigRootDir: process.cwd(),\n\t\t\t\t}\n\t\t\t: {\n\t\t\t\t\tproject: tsconfigPath ?? true,\n\t\t\t\t\ttsconfigRootDir: process.cwd(),\n\t\t\t\t});\n\n\tconst makeParser = (parsedFiles: string[], ignores?: string[]): TypedFlatConfigItem => ({\n\t\tfiles: parsedFiles,\n\n\t\t...(ignores && { ignores }),\n\n\t\tlanguageOptions: {\n\t\t\tparser: tsEslint.parser,\n\n\t\t\tparserOptions: {\n\t\t\t\tecmaFeatures: { globalReturn: true },\n\n\t\t\t\textraFileExtensions: componentExts.map((ext) => `.${ext}`),\n\n\t\t\t\tsourceType: \"module\",\n\n\t\t\t\t...parserOptions,\n\n\t\t\t\t...projectServiceObject,\n\t\t\t},\n\t\t},\n\t});\n\n\tconst selectedBaseRuleSet = isTypeAware ? \"strictTypeChecked\" : \"strict\";\n\tconst selectedStylisticRuleSet = isTypeAware ? \"strictTypeChecked\" : \"strict\";\n\n\tconst typeAwareRules = {\n\t\t\"ts-eslint/no-unnecessary-type-parameters\": \"off\",\n\t\t\"ts-eslint/non-nullable-type-assertion-style\": \"off\",\n\t\t\"ts-eslint/prefer-nullish-coalescing\": [\"error\", { ignoreConditionalTests: true }],\n\t\t\"ts-eslint/restrict-template-expressions\": [\n\t\t\t\"error\",\n\t\t\t{ allowBoolean: true, allowNullish: true, allowNumber: true },\n\t\t],\n\t\t\"ts-eslint/return-await\": [\"error\", \"in-try-catch\"],\n\t} satisfies TypedFlatConfigItem[\"rules\"];\n\n\treturn [\n\t\t{\n\t\t\tname: `zayne/ts-eslint/${isTypeAware ? \"type-aware-setup\" : \"setup\"}`,\n\n\t\t\t...makeParser(files),\n\t\t\t...(isTypeAware && makeParser(filesTypeAware, ignoresTypeAware)),\n\t\t},\n\n\t\t...renamePluginInConfigs({\n\t\t\tconfigs: tsEslint.configs[selectedBaseRuleSet],\n\t\t\toverrides: {\n\t\t\t\tfiles,\n\t\t\t\tname: `zayne/ts-eslint/${selectedBaseRuleSet}`,\n\t\t\t},\n\t\t\trenameMap: { \"@typescript-eslint\": \"ts-eslint\" },\n\t\t}),\n\n\t\t...(stylistic\n\t\t\t? renamePluginInConfigs({\n\t\t\t\t\tconfigs: tsEslint.configs[selectedStylisticRuleSet],\n\t\t\t\t\toverrides: {\n\t\t\t\t\t\tfiles,\n\t\t\t\t\t\tname: `zayne/ts-eslint/${selectedStylisticRuleSet}`,\n\t\t\t\t\t},\n\t\t\t\t\trenameMap: { \"@typescript-eslint\": \"ts-eslint\" },\n\t\t\t\t})\n\t\t\t: []),\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/ts-eslint/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"ts-eslint/array-type\": [\"error\", { default: \"array-simple\" }],\n\t\t\t\t\"ts-eslint/consistent-type-definitions\": [\"error\", \"type\"],\n\t\t\t\t\"ts-eslint/default-param-last\": \"error\",\n\t\t\t\t\"ts-eslint/member-ordering\": \"error\",\n\t\t\t\t\"ts-eslint/method-signature-style\": [\"error\", \"property\"],\n\t\t\t\t\"ts-eslint/no-confusing-void-expression\": \"off\",\n\t\t\t\t\"ts-eslint/no-empty-function\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{ allow: [\"arrowFunctions\", \"functions\", \"methods\"] },\n\t\t\t\t],\n\t\t\t\t\"ts-eslint/no-import-type-side-effects\": \"error\",\n\t\t\t\t\"ts-eslint/no-shadow\": \"error\",\n\t\t\t\t\"ts-eslint/no-unused-expressions\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tallowShortCircuit: true,\n\t\t\t\t\t\tallowTernary: true,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"ts-eslint/no-unused-vars\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\targs: \"all\",\n\t\t\t\t\t\targsIgnorePattern: \"^_\",\n\t\t\t\t\t\tcaughtErrors: \"all\",\n\t\t\t\t\t\tdestructuredArrayIgnorePattern: \"^_\",\n\t\t\t\t\t\treportUsedIgnorePattern: true,\n\t\t\t\t\t\tvars: \"all\",\n\t\t\t\t\t\tvarsIgnorePattern: \"[iI]gnored\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"ts-eslint/no-use-before-define\": \"off\",\n\t\t\t\t\"ts-eslint/no-useless-constructor\": \"error\",\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\n\t\tisTypeAware\n\t\t\t? {\n\t\t\t\t\tfiles: filesTypeAware,\n\t\t\t\t\tignores: ignoresTypeAware,\n\t\t\t\t\tname: \"zayne/ts-eslint/rules-type-aware\",\n\t\t\t\t\trules: {\n\t\t\t\t\t\t...typeAwareRules,\n\t\t\t\t\t\t...overridesTypeAware,\n\t\t\t\t\t},\n\t\t\t\t}\n\t\t\t: {},\n\t];\n};\n","import { interopDefault } from \"@/utils\";\nimport type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"../types\";\n\nexport const unicorn = async (\n\toptions: ExtractOptions<OptionsConfig[\"unicorn\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, type = \"app\" } = options;\n\n\tconst eslintPluginUnicorn = await interopDefault(import(\"eslint-plugin-unicorn\"));\n\n\treturn [\n\t\t{\n\t\t\t...eslintPluginUnicorn.configs.recommended,\n\t\t\tname: \"zayne/unicorn/recommended\",\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/unicorn/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"unicorn/filename-case\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\tcases: {\n\t\t\t\t\t\t\tcamelCase: true,\n\t\t\t\t\t\t\tkebabCase: true,\n\t\t\t\t\t\t\tpascalCase: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t...(type === \"app\"\n\t\t\t\t\t? {\n\t\t\t\t\t\t\t\"unicorn/prefer-global-this\": \"off\",\n\t\t\t\t\t\t}\n\t\t\t\t\t: {\n\t\t\t\t\t\t\t\"unicorn/prefer-global-this\": \"warn\",\n\t\t\t\t\t\t}),\n\n\t\t\t\t\"unicorn/new-for-builtins\": \"off\",\n\t\t\t\t\"unicorn/no-array-for-each\": \"off\",\n\t\t\t\t\"unicorn/no-array-reduce\": \"off\",\n\t\t\t\t\"unicorn/no-negated-condition\": \"off\",\n\t\t\t\t\"unicorn/no-null\": \"off\",\n\t\t\t\t\"unicorn/no-useless-undefined\": [\"error\", { checkArguments: true }],\n\t\t\t\t\"unicorn/numeric-separators-style\": \"off\",\n\t\t\t\t\"unicorn/prevent-abbreviations\": \"off\",\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n","import type { Linter } from \"eslint\";\nimport { mergeProcessors } from \"eslint-merge-processors\";\nimport { GLOB_VUE } from \"../globs\";\nimport type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"../types\";\nimport { ensurePackages, interopDefault, resolveOptions } from \"../utils\";\n\nexport const vue = async (\n\toptions: ExtractOptions<OptionsConfig[\"vue\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst {\n\t\tfiles = [GLOB_VUE],\n\t\toverrides,\n\t\tsfcBlocks = true,\n\t\tstylistic = true,\n\t\ttypescript = true,\n\t\tvueVersion = 3,\n\t} = options;\n\n\tawait ensurePackages([\n\t\t\"eslint-plugin-vue\",\n\t\t\"vue-eslint-parser\",\n\t\t...(sfcBlocks ? [\"eslint-processor-vue-blocks\"] : []),\n\t]);\n\n\tconst [pluginVue, parserVue, processorVueBlocks] = await Promise.all([\n\t\tinteropDefault(import(\"eslint-plugin-vue\")),\n\t\tinteropDefault(import(\"vue-eslint-parser\")),\n\t\t...(sfcBlocks ? [interopDefault(import(\"eslint-processor-vue-blocks\"))] : []),\n\t]);\n\n\treturn [\n\t\t{\n\t\t\t/**\n\t\t\t * This allows Vue plugin to work with auto imports\n\t\t\t * @ see https://github.com/vuejs/eslint-plugin-vue/pull/2422\n\t\t\t */\n\t\t\tlanguageOptions: {\n\t\t\t\tglobals: {\n\t\t\t\t\tcomputed: \"readonly\",\n\t\t\t\t\tdefineEmits: \"readonly\",\n\t\t\t\t\tdefineExpose: \"readonly\",\n\t\t\t\t\tdefineProps: \"readonly\",\n\t\t\t\t\tonMounted: \"readonly\",\n\t\t\t\t\tonUnmounted: \"readonly\",\n\t\t\t\t\treactive: \"readonly\",\n\t\t\t\t\tref: \"readonly\",\n\t\t\t\t\tshallowReactive: \"readonly\",\n\t\t\t\t\tshallowRef: \"readonly\",\n\t\t\t\t\ttoRef: \"readonly\",\n\t\t\t\t\ttoRefs: \"readonly\",\n\t\t\t\t\twatch: \"readonly\",\n\t\t\t\t\twatchEffect: \"readonly\",\n\t\t\t\t},\n\t\t\t},\n\n\t\t\tname: \"zayne/vue/setup\",\n\n\t\t\tplugins: {\n\t\t\t\tvue: pluginVue,\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tlanguageOptions: {\n\t\t\t\tparser: parserVue,\n\t\t\t\tparserOptions: {\n\t\t\t\t\tecmaFeatures: {\n\t\t\t\t\t\tjsx: true,\n\t\t\t\t\t},\n\t\t\t\t\textraFileExtensions: [\".vue\"],\n\t\t\t\t\tsourceType: \"module\",\n\n\t\t\t\t\t// eslint-disable-next-line unicorn/no-await-expression-member -- ignore for now\n\t\t\t\t\t...(typescript && { parser: (await interopDefault(import(\"typescript-eslint\"))).parser }),\n\t\t\t\t},\n\t\t\t},\n\n\t\t\tname: \"zayne/vue/setup/file-processor\",\n\n\t\t\tprocessor:\n\t\t\t\tsfcBlocks === false\n\t\t\t\t\t? (pluginVue.processors[\".vue\"] as Linter.Processor)\n\t\t\t\t\t: mergeProcessors([\n\t\t\t\t\t\t\tpluginVue.processors[\".vue\"] as Linter.Processor,\n\t\t\t\t\t\t\tprocessorVueBlocks?.({\n\t\t\t\t\t\t\t\t...resolveOptions(sfcBlocks),\n\t\t\t\t\t\t\t\tblocks: {\n\t\t\t\t\t\t\t\t\tstyles: true,\n\t\t\t\t\t\t\t\t\t...resolveOptions(sfcBlocks).blocks,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}) ?? (pluginVue.processors[\".vue\"] as Linter.Processor),\n\t\t\t\t\t\t]),\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/vue/recommended\",\n\n\t\t\trules: {\n\t\t\t\t...pluginVue.configs.base.rules,\n\n\t\t\t\t...pluginVue.configs[`flat/${vueVersion === 2 ? \"vue2-\" : \"\"}essential`].at(-1)?.rules,\n\t\t\t\t...pluginVue.configs[`flat/${vueVersion === 2 ? \"vue2-\" : \"\"}strongly-recommended`].at(-1)\n\t\t\t\t\t?.rules,\n\t\t\t\t...pluginVue.configs[`flat/${vueVersion === 2 ? \"vue2-\" : \"\"}recommended`].at(-1)?.rules,\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/vue/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"node/prefer-global/process\": \"off\",\n\n\t\t\t\t\"vue/block-order\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: [\"script\", \"template\", \"style\"],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"vue/component-name-in-template-casing\": [\"error\", \"PascalCase\"],\n\n\t\t\t\t\"vue/component-options-name-casing\": [\"error\", \"PascalCase\"],\n\n\t\t\t\t// == this is deprecated\n\t\t\t\t\"vue/component-tags-order\": \"off\",\n\n\t\t\t\t\"vue/custom-event-name-casing\": [\"error\", \"camelCase\"],\n\t\t\t\t\"vue/define-macros-order\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: [\"defineOptions\", \"defineProps\", \"defineEmits\", \"defineSlots\"],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"vue/dot-location\": [\"error\", \"property\"],\n\t\t\t\t\"vue/dot-notation\": [\"error\", { allowKeywords: true }],\n\t\t\t\t\"vue/eqeqeq\": [\"error\", \"smart\"],\n\t\t\t\t\"vue/html-indent\": \"off\",\n\t\t\t\t\"vue/html-quotes\": [\"error\", \"double\"],\n\t\t\t\t\"vue/max-attributes-per-line\": \"off\",\n\t\t\t\t\"vue/multi-word-component-names\": \"off\",\n\t\t\t\t\"vue/no-dupe-keys\": \"off\",\n\t\t\t\t\"vue/no-empty-pattern\": \"error\",\n\t\t\t\t\"vue/no-irregular-whitespace\": \"error\",\n\t\t\t\t\"vue/no-loss-of-precision\": \"error\",\n\t\t\t\t\"vue/no-restricted-syntax\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t\"DebuggerStatement\",\n\t\t\t\t\t\"LabeledStatement\",\n\t\t\t\t\t\"WithStatement\",\n\t\t\t\t],\n\t\t\t\t\"vue/no-restricted-v-bind\": [\"error\", \"/^v-/\"],\n\t\t\t\t\"vue/no-setup-props-reactivity-loss\": \"off\",\n\t\t\t\t\"vue/no-sparse-arrays\": \"error\",\n\t\t\t\t\"vue/no-unused-refs\": \"error\",\n\t\t\t\t\"vue/no-useless-v-bind\": \"error\",\n\t\t\t\t\"vue/no-v-html\": \"off\",\n\t\t\t\t\"vue/object-shorthand\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t\"always\",\n\t\t\t\t\t{\n\t\t\t\t\t\tavoidQuotes: true,\n\t\t\t\t\t\tignoreConstructors: false,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"vue/prefer-separate-static-class\": \"error\",\n\t\t\t\t\"vue/prefer-template\": \"error\",\n\t\t\t\t\"vue/prop-name-casing\": [\"error\", \"camelCase\"],\n\t\t\t\t\"vue/require-default-prop\": \"off\",\n\t\t\t\t\"vue/require-prop-types\": \"off\",\n\t\t\t\t\"vue/singleline-html-element-content-newline\": \"off\",\n\t\t\t\t\"vue/space-infix-ops\": \"error\",\n\t\t\t\t\"vue/space-unary-ops\": [\"error\", { nonwords: false, words: true }],\n\n\t\t\t\t...(stylistic && {\n\t\t\t\t\t\"vue/array-bracket-spacing\": [\"error\", \"never\"],\n\t\t\t\t\t\"vue/arrow-spacing\": [\"error\", { after: true, before: true }],\n\t\t\t\t\t\"vue/block-spacing\": [\"error\", \"always\"],\n\t\t\t\t\t\"vue/block-tag-newline\": [\n\t\t\t\t\t\t\"error\",\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmultiline: \"always\",\n\t\t\t\t\t\t\tsingleline: \"always\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\t\"vue/brace-style\": [\"error\", \"stroustrup\", { allowSingleLine: true }],\n\t\t\t\t\t\"vue/comma-dangle\": [\"error\", \"always-multiline\"],\n\t\t\t\t\t\"vue/comma-spacing\": [\"error\", { after: true, before: false }],\n\t\t\t\t\t\"vue/comma-style\": [\"error\", \"last\"],\n\t\t\t\t\t\"vue/html-comment-content-spacing\": [\n\t\t\t\t\t\t\"error\",\n\t\t\t\t\t\t\"always\",\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\texceptions: [\"-\"],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\t\"vue/key-spacing\": [\"error\", { afterColon: true, beforeColon: false }],\n\t\t\t\t\t\"vue/keyword-spacing\": [\"error\", { after: true, before: true }],\n\t\t\t\t\t\"vue/object-curly-newline\": \"off\",\n\t\t\t\t\t\"vue/object-curly-spacing\": [\"error\", \"always\"],\n\t\t\t\t\t\"vue/object-property-newline\": [\"error\", { allowMultiplePropertiesPerLine: true }],\n\t\t\t\t\t\"vue/operator-linebreak\": [\"error\", \"before\"],\n\t\t\t\t\t\"vue/padding-line-between-blocks\": [\"error\", \"always\"],\n\t\t\t\t\t\"vue/quote-props\": [\"error\", \"consistent-as-needed\"],\n\t\t\t\t\t\"vue/space-in-parens\": [\"error\", \"never\"],\n\t\t\t\t\t\"vue/template-curly-spacing\": \"error\",\n\t\t\t\t}),\n\n\t\t\t\t\"ts-eslint/no-unused-vars\": \"off\",\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n","import { GLOB_YAML } from \"../globs\";\nimport type { ExtractOptions, OptionsConfig, TypedFlatConfigItem } from \"../types\";\nimport { interopDefault } from \"../utils\";\n\nexport const yaml = async (\n\toptions: ExtractOptions<OptionsConfig[\"yaml\"]> = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { files = [GLOB_YAML], overrides, stylistic = true } = options;\n\n\tconst [pluginYaml, parserYaml] = await Promise.all([\n\t\tinteropDefault(import(\"eslint-plugin-yml\")),\n\t\tinteropDefault(import(\"yaml-eslint-parser\")),\n\t]);\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/yaml/setup\",\n\t\t\tplugins: {\n\t\t\t\tyaml: pluginYaml,\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tfiles,\n\n\t\t\tlanguageOptions: {\n\t\t\t\tparser: parserYaml,\n\t\t\t},\n\n\t\t\tname: \"zayne/yaml/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"yaml/block-mapping\": \"error\",\n\t\t\t\t\"yaml/block-sequence\": \"error\",\n\t\t\t\t\"yaml/no-empty-key\": \"error\",\n\t\t\t\t\"yaml/no-empty-sequence-entry\": \"error\",\n\t\t\t\t\"yaml/no-irregular-whitespace\": \"error\",\n\t\t\t\t\"yaml/plain-scalar\": \"error\",\n\n\t\t\t\t\"yaml/vue-custom-block/no-parsing-error\": \"error\",\n\n\t\t\t\t...(stylistic && {\n\t\t\t\t\t\"yaml/block-mapping-question-indicator-newline\": \"error\",\n\t\t\t\t\t\"yaml/block-sequence-hyphen-indicator-newline\": \"error\",\n\t\t\t\t\t\"yaml/flow-mapping-curly-newline\": \"error\",\n\t\t\t\t\t\"yaml/flow-mapping-curly-spacing\": \"error\",\n\t\t\t\t\t\"yaml/flow-sequence-bracket-newline\": \"error\",\n\t\t\t\t\t\"yaml/flow-sequence-bracket-spacing\": \"error\",\n\t\t\t\t\t// \"yaml/indent\": [\"error\", indent],\n\t\t\t\t\t\"yaml/key-spacing\": \"error\",\n\t\t\t\t\t\"yaml/no-tab-indent\": \"error\",\n\t\t\t\t\t// \"yaml/quotes\": [\n\t\t\t\t\t// \t\"error\",\n\t\t\t\t\t// \t{ avoidEscape: true, prefer: quotes === \"backtick\" ? \"double\" : quotes },\n\t\t\t\t\t// ],\n\t\t\t\t\t\"yaml/spaced-comment\": \"error\",\n\t\t\t\t}),\n\n\t\t\t\t\"stylistic/spaced-comment\": \"off\",\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n","import { GLOB_JSX, GLOB_TSX } from \"@/globs\";\nimport type { TypedFlatConfigItem } from \"@/types\";\n\nconst jsx = (): TypedFlatConfigItem[] => {\n\treturn [\n\t\t{\n\t\t\tfiles: [GLOB_JSX, GLOB_TSX],\n\n\t\t\tlanguageOptions: {\n\t\t\t\tparserOptions: {\n\t\t\t\t\tecmaFeatures: {\n\t\t\t\t\t\tjsx: true,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\n\t\t\tname: \"zayne/jsx/setup\",\n\t\t},\n\t];\n};\n\nexport { jsx };\n","import { isObject, resolveOptions } from \"@/utils\";\nimport { assert } from \"@zayne-labs/toolkit-type-helpers\";\nimport type { Linter } from \"eslint\";\nimport { FlatConfigComposer } from \"eslint-flat-config-utils\";\nimport { isPackageExists } from \"local-pkg\";\nimport {\n\tastro,\n\tcomments,\n\tdepend,\n\tgitIgnores,\n\tignores,\n\timports,\n\tjavascript,\n\tjsdoc,\n\tjsonc,\n\tnode,\n\tperfectionist,\n\tpnpm,\n\treact,\n\tsolid,\n\tsortPackageJson,\n\tsortTsconfig,\n\tstylistic,\n\ttailwindcss,\n\ttanstack,\n\ttoml,\n\ttypescript,\n\tunicorn,\n\tvue,\n\tyaml,\n} from \"./configs\";\nimport { jsx } from \"./configs/jsx\";\nimport { defaultPluginRenameMap } from \"./constants\";\nimport type { Awaitable, ConfigNames, OptionsConfig, Prettify, TypedFlatConfigItem } from \"./types\";\n\nconst ReactPackages = [\"react\", \"react-dom\"];\n\n/**\n * @description Construct an array of ESLint flat config items.\n * @param options\n * The options for generating the ESLint configurations.\n * @param userConfigs\n * The extra user configurations to be merged with the generated configurations.\n * @returns\n * The merged ESLint configurations.\n */\nexport const zayne = (\n\toptions: OptionsConfig & Prettify<Pick<TypedFlatConfigItem, \"ignores\">> = {},\n\t...userConfigs: Array<\n\t\tAwaitable<FlatConfigComposer | Linter.Config[] | TypedFlatConfigItem | TypedFlatConfigItem[]>\n\t>\n): FlatConfigComposer<TypedFlatConfigItem, ConfigNames> => {\n\tconst {\n\t\tautoRenamePlugins = true,\n\t\tcomponentExts = [],\n\t\ttype = \"app\",\n\t\twithDefaults = true,\n\t\t...restOfOptions\n\t} = options;\n\n\t// == These configs are too needful to be turned off with a single switch, plus won't harm things much\n\tconst enableGitignore = restOfOptions.gitignore ?? true;\n\tconst enableJsx = restOfOptions.jsx ?? true;\n\n\t// == These ones won't matter if they are all turned off at once\n\tconst enableComments = restOfOptions.comments ?? withDefaults;\n\tconst enableImports = restOfOptions.imports ?? withDefaults;\n\tconst enableJsdoc = restOfOptions.jsdoc ?? withDefaults;\n\tconst enablePnpmCatalogs = restOfOptions.pnpm;\n\tconst enableJsonc = restOfOptions.jsonc ?? withDefaults;\n\tconst enableNode = restOfOptions.node ?? withDefaults;\n\tconst enablePerfectionist = restOfOptions.perfectionist ?? withDefaults;\n\tconst enableReact =\n\t\trestOfOptions.react ?? (withDefaults && ReactPackages.some((pkg) => isPackageExists(pkg)));\n\tconst enableStylistic = restOfOptions.stylistic ?? withDefaults;\n\tconst enableToml = restOfOptions.toml ?? withDefaults;\n\tconst enableTypeScript = restOfOptions.typescript ?? (withDefaults && isPackageExists(\"typescript\"));\n\tconst enableUnicorn = restOfOptions.unicorn ?? withDefaults;\n\tconst enableYaml = restOfOptions.yaml ?? withDefaults;\n\n\tconst isStylistic = Boolean(enableStylistic);\n\n\tconst tsconfigPath =\n\t\tisObject(enableTypeScript) && \"tsconfigPath\" in enableTypeScript\n\t\t\t? enableTypeScript.tsconfigPath\n\t\t\t: null;\n\n\tconst isTypeAware = Boolean(tsconfigPath);\n\n\tconst configs: Array<Awaitable<TypedFlatConfigItem[]>> = [];\n\n\t// == Base configs\n\tconfigs.push(ignores(restOfOptions.ignores), javascript(restOfOptions.javascript));\n\n\t// == Other configs\n\tif (enableJsx) {\n\t\tconfigs.push(jsx());\n\t}\n\n\tif (restOfOptions.vue) {\n\t\tcomponentExts.push(\"vue\");\n\t}\n\n\tif (restOfOptions.astro) {\n\t\tcomponentExts.push(\"astro\");\n\t}\n\n\tif (enableTypeScript) {\n\t\tconfigs.push(\n\t\t\ttypescript({\n\t\t\t\tcomponentExts,\n\t\t\t\tstylistic: isStylistic,\n\t\t\t\t...resolveOptions(enableTypeScript),\n\t\t\t})\n\t\t);\n\t}\n\n\tif (enableStylistic) {\n\t\tconfigs.push(stylistic({ jsx: enableJsx, ...resolveOptions(enableStylistic) }));\n\t}\n\n\tif (enableComments) {\n\t\tconfigs.push(comments({ type, ...resolveOptions(enableComments) }));\n\t}\n\n\tif (enableGitignore) {\n\t\tconfigs.push(gitIgnores(resolveOptions(enableGitignore)));\n\t}\n\n\tif (enableImports) {\n\t\tconfigs.push(\n\t\t\timports({ stylistic: isStylistic, typescript: isTypeAware, ...resolveOptions(enableImports) })\n\t\t);\n\t}\n\n\tif (enablePnpmCatalogs) {\n\t\tconfigs.push(pnpm(resolveOptions(enablePnpmCatalogs)));\n\t}\n\n\tif (enableNode) {\n\t\tconfigs.push(node({ type, ...resolveOptions(enableNode) }));\n\t}\n\n\tif (enablePerfectionist) {\n\t\tconfigs.push(perfectionist(resolveOptions(enablePerfectionist)));\n\t}\n\n\tif (enableUnicorn) {\n\t\tconfigs.push(unicorn({ type, ...resolveOptions(enableUnicorn) }));\n\t}\n\n\tif (enableJsonc) {\n\t\tconfigs.push(\n\t\t\tjsonc({ stylistic: isStylistic, ...resolveOptions(enableJsonc) }),\n\t\t\tsortPackageJson(),\n\t\t\tsortTsconfig()\n\t\t);\n\t}\n\n\tif (enableJsdoc) {\n\t\tconfigs.push(jsdoc({ stylistic: isStylistic, ...resolveOptions(enableJsdoc) }));\n\t}\n\n\tif (enableToml) {\n\t\tconfigs.push(\n\t\t\ttoml({\n\t\t\t\tstylistic: isStylistic,\n\t\t\t\t...resolveOptions(enableToml),\n\t\t\t})\n\t\t);\n\t}\n\n\tif (enableYaml) {\n\t\tconfigs.push(\n\t\t\tyaml({\n\t\t\t\tstylistic: isStylistic,\n\t\t\t\t...resolveOptions(enableYaml),\n\t\t\t})\n\t\t);\n\t}\n\n\tif (enableReact) {\n\t\tconfigs.push(react({ typescript: isTypeAware, ...resolveOptions(enableReact) }));\n\t}\n\n\tif (restOfOptions.vue) {\n\t\tconfigs.push(\n\t\t\tvue({ stylistic: isStylistic, typescript: isTypeAware, ...resolveOptions(restOfOptions.vue) })\n\t\t);\n\t}\n\n\tif (restOfOptions.solid) {\n\t\tconfigs.push(solid({ typescript: isTypeAware, ...resolveOptions(restOfOptions.solid) }));\n\t}\n\n\tif (restOfOptions.astro) {\n\t\tconfigs.push(astro({ typescript: isTypeAware, ...resolveOptions(restOfOptions.astro) }));\n\t}\n\n\tif (restOfOptions.tailwindcss) {\n\t\tconfigs.push(tailwindcss(resolveOptions(restOfOptions.tailwindcss)));\n\t}\n\n\tif (restOfOptions.tanstack) {\n\t\tconfigs.push(tanstack(resolveOptions(restOfOptions.tanstack)));\n\t}\n\n\tif (restOfOptions.depend) {\n\t\tconfigs.push(depend(resolveOptions(restOfOptions.depend)));\n\t}\n\n\tassert(\n\t\t!(\"files\" in restOfOptions),\n\t\t`[@zayne-labs/eslint-config] The first argument should not contain the \"files\" property as the options are supposed to be global. Place it in the second config array instead.`\n\t);\n\n\tlet composer = new FlatConfigComposer<TypedFlatConfigItem, ConfigNames>();\n\n\tcomposer = composer.append(...configs, ...(userConfigs as never[]));\n\n\tif (autoRenamePlugins) {\n\t\tcomposer = composer.renamePlugins(defaultPluginRenameMap);\n\t}\n\n\treturn composer;\n};\n"],"mappings":";;;;;;;;;;AAEA,MAAa,eAAe;AAC5B,MAAa,WAAW;AAExB,MAAa,UAAU;AACvB,MAAa,WAAW;AAExB,MAAa,UAAU;AACvB,MAAa,WAAW;AAExB,MAAa,cAAc;AAC3B,MAAa,WAAW;AACxB,MAAa,eAAe;AAC5B,MAAa,YAAY;AACzB,MAAa,YAAY;AAEzB,MAAa,YAAY;AACzB,MAAa,aAAa;AAC1B,MAAa,aAAa;AAE1B,MAAa,gBAAgB;AAC7B,MAAa,4BAA4B;AACzC,MAAa,cAAc;AAC3B,MAAa,WAAW;AACxB,MAAa,YAAY;AACzB,MAAa,YAAY;AACzB,MAAa,WAAW;AACxB,MAAa,WAAW;AACxB,MAAa,YAAY;AACzB,MAAa,aAAa;AAC1B,MAAa,gBAAgB;AAC7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AAE,MAAM,MAAO;GACtB,aAAa;EAEd,CAAA;EACD,mBAAmB;GAClB;GACA;IACC,OAAO;KACN;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;IACA;IACD,aAAa;GACb;GACD;IACC,OAAO,EAAE,MAAM,MAAO;IACtB,aAAa;GACb;GACD;IACC,OAAO,EAAE,MAAM,MAAO;IACtB,aAAa;GACb;GACD;IACC,OAAO,EAAE,MAAM,MAAO;IACtB,aAAa;GACb;GACD;IACC,OAAO;KAAC;KAAS;KAAU;KAAW;IAAU;IAChD,aAAa;GACb;GACD;IACC,OAAO;KAEN;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;IACA;IACD,aAAa;GACb;EACD;CACD;AAEF,CAAA;;;;;;AAQD,MAAa,eAAe,MAA6B,CACxD;CACC,OAAO,CAAC,oBAAoB,oBAAqB;CAEjD,MAAM;CAEN,OAAO,EACN,mBAAmB;EAClB;EACA;GACC,OAAO;IAAC;IAAW;IAAmB;IAAc;IAAS;IAAW;GAAU;GAClF,aAAa;EACb;EACD;GACC,OAAO;IAEN;IACA;IACA;IACA;IACA;IACA;IAEA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IAEA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IAEA;IACA;IACA;IAEA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IAEA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IAE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