{"version":3,"sources":["jsdelivr-header.js","/npm/@debbl/eslint-config@3.16.0/src/utils.ts","/npm/@debbl/eslint-config@3.16.0/src/configs/comments.ts","/npm/@debbl/eslint-config@3.16.0/src/globs.ts","/npm/@debbl/eslint-config@3.16.0/src/configs/ignores.ts","/npm/@debbl/eslint-config@3.16.0/src/configs/imports.ts","/npm/@debbl/eslint-config@3.16.0/src/configs/javascript.ts","/npm/@debbl/eslint-config@3.16.0/src/configs/jsdoc.ts","/npm/@debbl/eslint-config@3.16.0/src/configs/jsonc.ts","/npm/@debbl/eslint-config@3.16.0/src/configs/markdown.ts","/npm/@debbl/eslint-config@3.16.0/src/configs/node.ts","/npm/@debbl/eslint-config@3.16.0/src/configs/perfectionist.ts","/npm/@debbl/eslint-config@3.16.0/src/configs/prettier.ts","/npm/@debbl/eslint-config@3.16.0/src/configs/sort.ts","/npm/@debbl/eslint-config@3.16.0/src/configs/test.ts","/npm/@debbl/eslint-config@3.16.0/src/configs/toml.ts","/npm/@debbl/eslint-config@3.16.0/src/configs/typescript.ts","/npm/@debbl/eslint-config@3.16.0/src/configs/unicorn.ts","/npm/@debbl/eslint-config@3.16.0/src/configs/vue.ts","/npm/@debbl/eslint-config@3.16.0/src/configs/yml.ts","/npm/@debbl/eslint-config@3.16.0/src/configs/react.ts","/npm/@debbl/eslint-config@3.16.0/src/configs/tailwindcss.ts","/npm/@debbl/eslint-config@3.16.0/src/factory.ts","/npm/@debbl/eslint-config@3.16.0/src/index.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,yICJA,MAAa,YAAc,CACzB,KAAM,CACJ,KAAM,gBAER,eAAiB,IAAA,CACf,IAAK,CACH,KAAM,GACN,SAAU,GACV,IAAK,CAAE,IAAK,EAAK,OAAQ,MAAO,GAChC,MAAO,CAAC,EAAG,EAAK,QAChB,OAAQ,GACR,KAAM,WAER,aAAc,KACd,SAAU,CAAE,SAAS,GACrB,YAAa,CACX,QAAS,OAQf,eAAsB,WACjB,G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B,MAIrB,mBAAoB,MACpB,wBAAyB,MAG3B,oBAAqB,CACnB,OACA,CACE,QAAS,EAAc,CAAC,+BAAiC,MACtD,KACA,SAMR,EACJ,ECxHH,eAAsB,kBACpB,MAAO,CACL,CACE,KAAM,2BACN,MAAO,CAAC,mBACR,MAAO,CACL,0BAA2B,CACzB,QACA,CACE,MAAO,CAAE,KAAM,OACf,YAAa,YAGjB,kBAAmB,CACjB,QACA,CACE,MAAO,CACL,YACA,OACA,cACA,OACA,UACA,UACA,iBACA,cACA,SACA,UACA,UACA,WACA,aACA,OACA,WACA,aACA,cACA,UACA,OACA,SACA,QACA,WACA,QACA,gBACA,MACA,OACA,QACA,UACA,mBACA,cACA,UACA,mBACA,uBACA,eACA,uBACA,kBACA,OACA,YACA,cACA,QACA,mBACA,cACA,gBAEF,YAAa,MAEf,CACE,MAAO,CAAE,KAAM,OACf,YACE,0DAEJ,CACE,MAAO,CAAE,KAAM,OACf,YAAa,8CAEf,CACE,MAAO,CAAC,QAAS,SAAU,UAAW,WACtC,YAAa,kB,CAazB,eAAsB,eACpB,MAAO,CACL,CACE,KAAM,4BACN,MAAO,CAAC,mBAAoB,sBAC5B,MAAO,CACL,kBAAmB,CACjB,QACA,CACE,MAAO,CACL,UACA,kBACA,aACA,QACA,UACA,WAEF,YAAa,MAEf,CACE,MAAO,CAEL,cACA,YACA,kBACA,0CACA,2BACA,+BAEA,SACA,MACA,aACA,qBACA,kBACA,MACA,kBACA,QACA,iBACA,0BACA,wBACA,yBAEA,UACA,UACA,WACA,mBACA,SACA,mBACA,iBACA,YACA,QACA,oBACA,4BACA,4BACA,YACA,QACA,2BACA,6BACA,uBAEA,UACA,UACA,uBAEA,SACA,sBACA,sBACA,mBACA,+BACA,uBACA,oBACA,eACA,6BACA,6BACA,gBACA,qBACA,oBACA,iBACA,qCACA,2BACA,iBACA,qBACA,6BAEA,cACA,iBACA,iBACA,qBACA,UACA,sBACA,gBACA,yBACA,kBACA,gBACA,UACA,UACA,SACA,gB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AAiB,EAAQ,UAC5B,mBAKoB,aAAtB,GAAoC,GACtC,EAAQ,KAAK,YAAY,iBAAiB,MAGxC,EAAQ,UAAY,IACtB,EAAQ,KACN,SAAS,IACJ,iBAAiB,EAAQ,UAC5B,YAAmC,aAAtB,KAKJ,WAAW,KAAY,E,CC5HxC,IAAA,YAAe,oB","file":"/npm/@debbl/eslint-config@3.16.0/dist/index.mjs","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@debbl/eslint-config@3.16.0/dist/index.mjs\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import type { Awaitable, ConfigItem } from './types'\n\nexport const parserPlain = {\n  meta: {\n    name: 'parser-plain',\n  },\n  parseForESLint: (code: string) => ({\n    ast: {\n      body: [],\n      comments: [],\n      loc: { end: code.length, start: 0 },\n      range: [0, code.length],\n      tokens: [],\n      type: 'Program',\n    },\n    scopeManager: null,\n    services: { isPlain: true },\n    visitorKeys: {\n      Program: [],\n    },\n  }),\n}\n\n/**\n * Combine array and non-array configs into a single array.\n */\nexport async function combine(\n  ...configs: Awaitable<ConfigItem | ConfigItem[]>[]\n): Promise<ConfigItem[]> {\n  const resolved = await Promise.all(configs)\n  return resolved.flat()\n}\n\nexport async function interopDefault<T>(\n  m: Awaitable<T>,\n): Promise<T extends { default: infer U } ? U : T> {\n  const resolved = await m\n  return (resolved as any).default || resolved\n}\n\nexport function getConfigOptions<T>(options: T) {\n  return options ? (typeof options !== 'boolean' ? options : {}) : {}\n}\n","import { interopDefault } from '../utils'\nimport type { ConfigItem } from '../types'\n\nexport async function comments(): Promise<ConfigItem[]> {\n  const pluginComments = await interopDefault(\n    import('@eslint-community/eslint-plugin-eslint-comments'),\n  )\n\n  return [\n    {\n      name: 'eslint/eslint-comments/rules',\n      plugins: {\n        'eslint-comments': pluginComments,\n      },\n      rules: {\n        'eslint-comments/no-aggregating-enable': 'error',\n        'eslint-comments/no-duplicate-disable': 'error',\n        'eslint-comments/no-unlimited-disable': 'error',\n        'eslint-comments/no-unused-enable': 'error',\n      },\n    },\n  ]\n}\n","export 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_STYLE = '**/*.{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_MDX = '**/*.mdx'\nexport const GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`\nexport const GLOB_MARKDOWN_IN_MARKDOWN = '**/*.md/*.md'\nexport const GLOB_ASTRO_TS = '**/*.astro/*.ts'\n\nexport const GLOB_VUE = '**/*.vue'\n\nexport const GLOB_YAML = '**/*.y?(a)ml'\nexport const GLOB_TOML = '**/*.toml'\nexport const GLOB_HTML = '**/*.htm?(l)'\n\nexport const GLOB_TESTS = [\n  `**/__tests__/**/*.${GLOB_SRC_EXT}`,\n  `**/*.spec.${GLOB_SRC_EXT}`,\n  `**/*.test.${GLOB_SRC_EXT}`,\n  `**/*.bench.${GLOB_SRC_EXT}`,\n  `**/*.benchmark.${GLOB_SRC_EXT}`,\n]\n\nexport const GLOB_ALL_SRC = [\n  GLOB_SRC,\n  GLOB_STYLE,\n  GLOB_JSON,\n  GLOB_JSON5,\n  GLOB_MARKDOWN,\n  GLOB_VUE,\n  GLOB_YAML,\n  GLOB_HTML,\n]\n\nexport const GLOB_EXCLUDE = [\n  '**/node_modules',\n  '**/dist',\n  '**/package-lock.json',\n  '**/yarn.lock',\n  '**/pnpm-lock.yaml',\n  '**/bun.lockb',\n\n  '**/public',\n  '**/output',\n  '**/coverage',\n  '**/temp',\n  '**/.vitepress/cache',\n  '**/.nuxt',\n  '**/.next',\n  '**/.vercel',\n  '**/.changeset',\n  '**/.idea',\n  '**/.cache',\n  '**/.output',\n  '**/.vite-inspect',\n\n  '**/CHANGELOG*.md',\n  '**/*.min.*',\n  '**/LICENSE*',\n  '**/__snapshots__',\n  '**/auto-import?(s).d.ts',\n  '**/components.d.ts',\n]\n","import { getConfigOptions, interopDefault } from '~/utils'\nimport { GLOB_EXCLUDE } from '../globs'\nimport type { FlatGitignoreOptions } from 'eslint-config-flat-gitignore'\nimport type { ConfigFn } from '../types'\n\nexport type IgnoresConfig = (options: {\n  enableGitignore?: boolean | Omit<FlatGitignoreOptions, 'name'>\n  files?: ((files: string[]) => string[]) | string[]\n}) => ReturnType<ConfigFn>\n\nexport const ignores: IgnoresConfig = async (options) => {\n  const { enableGitignore = true, files = [] } = options\n\n  const gitIgnores: string[] = []\n  if (enableGitignore) {\n    const gitignore = await interopDefault(\n      import('eslint-config-flat-gitignore'),\n    )\n\n    gitIgnores.push(...gitignore(getConfigOptions(enableGitignore)).ignores)\n  }\n\n  let ignores = [...GLOB_EXCLUDE, ...gitIgnores]\n\n  if (typeof files === 'function') {\n    ignores = files(ignores)\n  } else {\n    ignores = [...ignores, ...files]\n  }\n\n  return [\n    {\n      name: 'eslint/ignores',\n      ignores: [...GLOB_EXCLUDE, ...ignores],\n    },\n  ]\n}\n","import { interopDefault } from '../utils'\nimport type { ConfigItem } from '../types'\n\nexport async function imports(): Promise<ConfigItem[]> {\n  const pluginImport = await interopDefault(import('eslint-plugin-import-x'))\n\n  return [\n    {\n      name: 'eslint/imports/rules',\n      plugins: {\n        import: pluginImport,\n      },\n      rules: {\n        'import/first': 'error',\n        'import/no-duplicates': 'error',\n        'import/no-mutable-exports': 'error',\n        'import/no-named-default': 'error',\n        'import/no-self-import': 'error',\n        'import/no-webpack-loader-syntax': 'error',\n\n        'import/newline-after-import': ['error', { count: 1 }],\n        'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],\n      },\n    },\n  ]\n}\n","import globals from 'globals'\nimport { GLOB_SRC, GLOB_SRC_EXT } from '../globs'\nimport { interopDefault } from '../utils'\nimport type { ConfigFn } from '../types'\n\nexport type JavascriptConfig = ConfigFn\n\nexport const javascript: JavascriptConfig = async (options) => {\n  const { overrides = {} } = options\n\n  const pluginUnusedImports = await interopDefault(\n    import('eslint-plugin-unused-imports'),\n  )\n\n  return [\n    {\n      name: 'eslint/javascript/rules',\n      languageOptions: {\n        ecmaVersion: 2022,\n        globals: {\n          ...globals.browser,\n          ...globals.es2021,\n          ...globals.node,\n          document: 'readonly',\n          navigator: 'readonly',\n          window: 'readonly',\n        },\n        parserOptions: {\n          ecmaFeatures: {\n            jsx: true,\n          },\n          ecmaVersion: 2022,\n          sourceType: 'module',\n        },\n        sourceType: 'module',\n      },\n      linterOptions: {\n        reportUnusedDisableDirectives: true,\n      },\n      plugins: {\n        'unused-imports': pluginUnusedImports,\n      },\n      rules: {\n        'accessor-pairs': [\n          'error',\n          { enforceForClassMembers: true, setWithoutGet: true },\n        ],\n\n        'array-callback-return': 'error',\n        'block-scoped-var': 'error',\n        'constructor-super': 'error',\n        'default-case-last': 'error',\n        'dot-notation': ['error', { allowKeywords: true }],\n        'eqeqeq': ['error', 'smart'],\n        'new-cap': [\n          'error',\n          { capIsNew: false, newIsCap: true, properties: true },\n        ],\n        'no-alert': 'error',\n        'no-array-constructor': 'error',\n        'no-async-promise-executor': 'error',\n        'no-caller': 'error',\n        'no-case-declarations': 'error',\n        'no-class-assign': 'error',\n        'no-compare-neg-zero': 'error',\n        'no-cond-assign': ['error', 'always'],\n        'no-console': ['error', { allow: ['warn', 'error'] }],\n        'no-const-assign': 'error',\n        'no-control-regex': 'error',\n        'no-debugger': 'error',\n        'no-delete-var': 'error',\n        'no-dupe-args': 'error',\n        'no-dupe-class-members': 'error',\n        'no-dupe-keys': 'error',\n        'no-duplicate-case': 'error',\n        'no-empty': ['error', { allowEmptyCatch: true }],\n        'no-empty-character-class': 'error',\n        'no-empty-pattern': 'error',\n        'no-eval': 'error',\n        'no-ex-assign': 'error',\n        'no-extend-native': 'error',\n        'no-extra-bind': 'error',\n        'no-extra-boolean-cast': 'error',\n        'no-fallthrough': 'error',\n        'no-func-assign': 'error',\n        'no-global-assign': 'error',\n        'no-implied-eval': 'error',\n        'no-import-assign': 'error',\n        'no-invalid-regexp': 'error',\n        'no-invalid-this': 'error',\n        'no-irregular-whitespace': 'error',\n        'no-iterator': 'error',\n        'no-labels': ['error', { allowLoop: false, allowSwitch: false }],\n        'no-lone-blocks': 'error',\n        'no-loss-of-precision': 'error',\n        'no-misleading-character-class': 'error',\n        'no-multi-str': 'error',\n        'no-new': 'error',\n        'no-new-func': 'error',\n        'no-new-native-nonconstructor': 'error',\n        'no-new-wrappers': 'error',\n        'no-obj-calls': 'error',\n        'no-octal': 'error',\n        'no-octal-escape': 'error',\n        'no-proto': 'error',\n        'no-prototype-builtins': 'error',\n        'no-redeclare': ['error', { builtinGlobals: false }],\n        'no-regex-spaces': 'error',\n        'no-restricted-globals': [\n          'error',\n          { message: 'Use `globalThis` instead.', name: 'global' },\n          { message: 'Use `globalThis` instead.', name: 'self' },\n        ],\n        'no-restricted-properties': [\n          'error',\n          {\n            message:\n              'Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.',\n            property: '__proto__',\n          },\n          {\n            message: 'Use `Object.defineProperty` instead.',\n            property: '__defineGetter__',\n          },\n          {\n            message: 'Use `Object.defineProperty` instead.',\n            property: '__defineSetter__',\n          },\n          {\n            message: 'Use `Object.getOwnPropertyDescriptor` instead.',\n            property: '__lookupGetter__',\n          },\n          {\n            message: 'Use `Object.getOwnPropertyDescriptor` instead.',\n            property: '__lookupSetter__',\n          },\n        ],\n        'no-restricted-syntax': [\n          'error',\n          'TSEnumDeclaration[const=true]',\n          'TSExportAssignment',\n        ],\n        'no-self-assign': ['error', { props: true }],\n        'no-self-compare': 'error',\n        'no-sequences': 'error',\n        'no-shadow-restricted-names': 'error',\n        'no-sparse-arrays': 'error',\n        'no-template-curly-in-string': 'error',\n        'no-this-before-super': 'error',\n        'no-throw-literal': 'error',\n        'no-undef': 'error',\n        'no-undef-init': 'error',\n        'no-unexpected-multiline': 'error',\n        'no-unmodified-loop-condition': 'error',\n        'no-unneeded-ternary': ['error', { defaultAssignment: false }],\n        'no-unreachable': 'error',\n        'no-unreachable-loop': 'error',\n        'no-unsafe-finally': 'error',\n        'no-unsafe-negation': 'error',\n        'no-unused-expressions': [\n          'error',\n          {\n            allowShortCircuit: true,\n            allowTaggedTemplates: true,\n            allowTernary: true,\n          },\n        ],\n        'no-unused-vars': [\n          'error',\n          {\n            args: 'none',\n            caughtErrors: 'none',\n            ignoreRestSiblings: true,\n            vars: 'all',\n          },\n        ],\n        'no-use-before-define': [\n          'error',\n          { classes: false, functions: false, variables: true },\n        ],\n        'no-useless-backreference': 'error',\n        'no-useless-call': 'error',\n        'no-useless-catch': 'error',\n        'no-useless-computed-key': 'error',\n        'no-useless-constructor': 'error',\n        'no-useless-rename': 'error',\n        'no-useless-return': 'error',\n        'no-var': 'error',\n        'no-with': 'error',\n        'object-shorthand': [\n          'error',\n          'always',\n          {\n            avoidQuotes: true,\n            ignoreConstructors: false,\n          },\n        ],\n        'one-var': ['error', { initialized: 'never' }],\n        'prefer-arrow-callback': [\n          'error',\n          {\n            allowNamedFunctions: false,\n            allowUnboundThis: true,\n          },\n        ],\n        'prefer-const': [\n          'error',\n          {\n            destructuring: 'all',\n            ignoreReadBeforeAssign: true,\n          },\n        ],\n        'prefer-exponentiation-operator': 'error',\n        'prefer-promise-reject-errors': 'error',\n        'prefer-regex-literals': ['error', { disallowRedundantWrapping: true }],\n        'prefer-rest-params': 'error',\n        'prefer-spread': 'error',\n        'prefer-template': 'error',\n        'symbol-description': 'error',\n        'unicode-bom': ['error', 'never'],\n        'unused-imports/no-unused-imports': 'warn',\n\n        'unused-imports/no-unused-vars': [\n          'error',\n          {\n            args: 'after-used',\n            argsIgnorePattern: '^_',\n            vars: 'all',\n            varsIgnorePattern: '^_',\n          },\n        ],\n        'use-isnan': [\n          'error',\n          { enforceForIndexOf: true, enforceForSwitchCase: true },\n        ],\n        'valid-typeof': ['error', { requireStringLiterals: true }],\n        'vars-on-top': 'error',\n        'yoda': ['error', 'never'],\n\n        ...overrides,\n      },\n    },\n    {\n      name: 'eslint/scripts-overrides/disables/cli',\n      files: [`scripts/${GLOB_SRC}`, `cli.${GLOB_SRC_EXT}`],\n      rules: {\n        'no-console': 'off',\n      },\n    },\n  ]\n}\n","import { interopDefault } from '../utils'\nimport type { ConfigItem } from '../types'\n\nexport async function jsdoc(): Promise<ConfigItem[]> {\n  return [\n    {\n      name: 'eslint/jsdoc/rules',\n      plugins: {\n        jsdoc: await interopDefault(import('eslint-plugin-jsdoc')),\n      },\n      rules: {\n        'jsdoc/check-access': 'warn',\n        'jsdoc/check-param-names': 'warn',\n        'jsdoc/check-property-names': 'warn',\n        'jsdoc/check-types': 'warn',\n        'jsdoc/empty-tags': 'warn',\n        'jsdoc/implements-on-classes': 'warn',\n        'jsdoc/no-defaults': 'warn',\n        'jsdoc/no-multi-asterisks': 'warn',\n        'jsdoc/require-param-name': 'warn',\n        'jsdoc/require-property': 'warn',\n        'jsdoc/require-property-description': 'warn',\n        'jsdoc/require-property-name': 'warn',\n        'jsdoc/require-returns-check': 'warn',\n        'jsdoc/require-returns-description': 'warn',\n        'jsdoc/require-yields-check': 'warn',\n\n        'jsdoc/check-alignment': 'warn',\n        'jsdoc/multiline-blocks': 'warn',\n      },\n    },\n  ]\n}\n","import { GLOB_JSON, GLOB_JSON5, GLOB_JSONC } from '../globs'\nimport { interopDefault } from '../utils'\nimport type { ConfigFn } from '../types'\n\nexport type JsoncConfig = ConfigFn\n\nexport const jsonc: JsoncConfig = async (options) => {\n  const { overrides = {} } = options\n\n  const pluginJsonc = await interopDefault(import('eslint-plugin-jsonc'))\n\n  return [\n    {\n      name: 'eslint/jsonc/setup',\n      plugins: {\n        jsonc: pluginJsonc,\n      },\n    },\n    {\n      name: 'eslint/jsonc/rules',\n      files: [GLOB_JSON, GLOB_JSON5, GLOB_JSONC],\n      language: 'jsonc/x',\n      rules: {\n        'jsonc/no-bigint-literals': 'error',\n        'jsonc/no-binary-expression': 'error',\n        'jsonc/no-binary-numeric-literals': 'error',\n        'jsonc/no-dupe-keys': 'error',\n        'jsonc/no-escape-sequence-in-identifier': 'error',\n        'jsonc/no-floating-decimal': 'error',\n        'jsonc/no-hexadecimal-numeric-literals': 'error',\n        'jsonc/no-infinity': 'error',\n        'jsonc/no-multi-str': 'error',\n        'jsonc/no-nan': 'error',\n        'jsonc/no-number-props': 'error',\n        'jsonc/no-numeric-separators': 'error',\n        'jsonc/no-octal': 'error',\n        'jsonc/no-octal-escape': 'error',\n        'jsonc/no-octal-numeric-literals': 'error',\n        'jsonc/no-parenthesized': 'error',\n        'jsonc/no-plus-sign': 'error',\n        'jsonc/no-regexp-literals': 'error',\n        'jsonc/no-sparse-arrays': 'error',\n        'jsonc/no-template-literals': 'error',\n        'jsonc/no-undefined-value': 'error',\n        'jsonc/no-unicode-codepoint-escapes': 'error',\n        'jsonc/no-useless-escape': 'error',\n        'jsonc/space-unary-ops': 'error',\n        'jsonc/valid-json-number': 'error',\n        'jsonc/vue-custom-block/no-parsing-error': 'error',\n\n        'jsonc/array-bracket-spacing': ['error', 'never'],\n        'jsonc/comma-style': ['error', 'last'],\n        'jsonc/key-spacing': [\n          'error',\n          { afterColon: true, beforeColon: false },\n        ],\n        'jsonc/object-curly-newline': [\n          'error',\n          { consistent: true, multiline: true },\n        ],\n        'jsonc/object-curly-spacing': ['error', 'always'],\n        'jsonc/object-property-newline': [\n          'error',\n          { allowMultiplePropertiesPerLine: true },\n        ],\n        'jsonc/quote-props': 'error',\n        'jsonc/quotes': 'error',\n\n        ...overrides,\n      },\n    },\n  ]\n}\n","import { mergeProcessors, processorPassThrough } from 'eslint-merge-processors'\nimport {\n  GLOB_MARKDOWN,\n  GLOB_MARKDOWN_CODE,\n  GLOB_MARKDOWN_IN_MARKDOWN,\n} from '../globs'\nimport { interopDefault } from '../utils'\nimport type {\n  ConfigItem,\n  OptionsComponentExts,\n  OptionsFiles,\n  OptionsMarkdown,\n} from '../types'\n\nexport type MarkdownConfig = (\n  options: OptionsFiles & OptionsComponentExts & OptionsMarkdown,\n) => Promise<ConfigItem[]>\n\nexport const markdown: MarkdownConfig = async (\n  options: OptionsFiles & OptionsComponentExts & OptionsMarkdown = {},\n) => {\n  const {\n    componentExts = [],\n    files = [GLOB_MARKDOWN],\n    gfm = true,\n    overrides = {},\n    overridesMarkdown = {},\n  } = options\n\n  const pluginMarkdown = await interopDefault(import('@eslint/markdown'))\n\n  return [\n    {\n      name: 'eslint/markdown/setup',\n      plugins: {\n        markdown: pluginMarkdown,\n      },\n    },\n    {\n      files,\n      ignores: [GLOB_MARKDOWN_IN_MARKDOWN],\n      name: 'eslint/markdown/processor',\n      processor: mergeProcessors([\n        pluginMarkdown.processors!.markdown,\n        processorPassThrough,\n      ]),\n    },\n    {\n      files,\n      language: gfm ? 'markdown/gfm' : 'markdown/commonmark',\n      name: 'eslint/markdown/parser',\n    },\n    {\n      files,\n      name: 'eslint/markdown/rules',\n      rules: {\n        ...pluginMarkdown.configs.recommended.at(0)?.rules,\n        'markdown/no-missing-label-refs': 'off',\n        ...overridesMarkdown,\n      },\n    },\n    {\n      files,\n      name: 'eslint/markdown/disables/markdown',\n      rules: {\n        'jsdoc/check-access': 'off',\n        'jsdoc/check-alignment': 'off',\n        'jsdoc/check-param-names': 'off',\n        'jsdoc/check-property-names': 'off',\n        'jsdoc/check-types': 'off',\n        'jsdoc/empty-tags': 'off',\n        'jsdoc/implements-on-classes': 'off',\n        'jsdoc/multiline-blocks': 'off',\n        'jsdoc/no-defaults': 'off',\n        'jsdoc/no-multi-asterisks': 'off',\n        'jsdoc/require-param-name': 'off',\n        'jsdoc/require-property': 'off',\n        'jsdoc/require-property-description': 'off',\n        'jsdoc/require-property-name': 'off',\n        'jsdoc/require-returns-check': 'off',\n        'jsdoc/require-returns-description': 'off',\n        'jsdoc/require-yields-check': 'off',\n        'no-irregular-whitespace': 'off',\n        'perfectionist/sort-exports': 'off',\n        'perfectionist/sort-imports': 'off',\n      },\n    },\n    {\n      files: [\n        GLOB_MARKDOWN_CODE,\n        ...componentExts.map((ext) => `${GLOB_MARKDOWN}/**/*.${ext}`),\n      ],\n      languageOptions: {\n        parserOptions: {\n          ecmaFeatures: {\n            impliedStrict: true,\n          },\n        },\n      },\n      name: 'eslint/markdown/disables/code',\n      rules: {\n        'no-alert': 'off',\n        'no-console': 'off',\n        'no-labels': 'off',\n        'no-lone-blocks': 'off',\n        'no-restricted-syntax': 'off',\n        'no-undef': 'off',\n        'no-unused-expressions': 'off',\n        'no-unused-labels': 'off',\n        'no-unused-vars': 'off',\n\n        'node/prefer-global/process': 'off',\n\n        '@typescript-eslint/consistent-type-imports': 'off',\n        '@typescript-eslint/no-namespace': 'off',\n        '@typescript-eslint/no-redeclare': 'off',\n        '@typescript-eslint/no-require-imports': 'off',\n        '@typescript-eslint/no-unused-vars': 'off',\n        '@typescript-eslint/no-use-before-define': 'off',\n        '@typescript-eslint/no-var-requires': 'off',\n\n        'unicode-bom': 'off',\n        'unused-imports/no-unused-imports': 'off',\n        'unused-imports/no-unused-vars': 'off',\n\n        '@typescript-eslint/await-thenable': 'off',\n        '@typescript-eslint/dot-notation': 'off',\n        '@typescript-eslint/no-floating-promises': 'off',\n        '@typescript-eslint/no-for-in-array': 'off',\n        '@typescript-eslint/no-implied-eval': 'off',\n        '@typescript-eslint/no-misused-promises': 'off',\n        '@typescript-eslint/no-throw-literal': 'off',\n        '@typescript-eslint/no-unnecessary-type-assertion': 'off',\n        '@typescript-eslint/no-unsafe-argument': 'off',\n        '@typescript-eslint/no-unsafe-assignment': 'off',\n        '@typescript-eslint/no-unsafe-call': 'off',\n        '@typescript-eslint/no-unsafe-member-access': 'off',\n        '@typescript-eslint/no-unsafe-return': 'off',\n        '@typescript-eslint/restrict-plus-operands': 'off',\n        '@typescript-eslint/restrict-template-expressions': 'off',\n        '@typescript-eslint/unbound-method': 'off',\n\n        ...overrides,\n      },\n    },\n  ]\n}\n","import { interopDefault } from '../utils'\nimport type { ConfigItem } from '../types'\n\nexport async function node(): Promise<ConfigItem[]> {\n  const pluginNode = await interopDefault(import('eslint-plugin-n'))\n\n  return [\n    {\n      name: 'eslint/node/rules',\n      plugins: {\n        n: pluginNode,\n      },\n      rules: {\n        'n/handle-callback-err': ['error', '^(err|error)$'],\n        'n/no-deprecated-api': 'error',\n        'n/no-exports-assign': 'error',\n        'n/no-new-require': 'error',\n        'n/no-path-concat': 'error',\n        'n/prefer-global/buffer': ['error', 'never'],\n        'n/prefer-global/process': ['error', 'never'],\n        'n/process-exit-as-throw': 'error',\n      },\n    },\n  ]\n}\n","import { interopDefault } from '../utils'\nimport type { ConfigItem } from '../types'\n\n/**\n * Perfectionist plugin for props and items sorting.\n *\n * @see https://github.com/azat-io/eslint-plugin-perfectionist\n */\nexport async function perfectionist(): Promise<ConfigItem[]> {\n  const pluginPerfectionist = await interopDefault(\n    import('eslint-plugin-perfectionist'),\n  )\n\n  return [\n    {\n      name: 'eslint/perfectionist/setup',\n      plugins: {\n        perfectionist: pluginPerfectionist,\n      },\n      rules: {\n        'perfectionist/sort-exports': [\n          'error',\n          { order: 'asc', type: 'natural' },\n        ],\n        'perfectionist/sort-imports': [\n          'error',\n          {\n            groups: [\n              'value-builtin',\n              'value-external',\n              'value-internal',\n              ['value-parent', 'value-sibling', 'value-index'],\n              'side-effect',\n              'ts-equals-import',\n              'type-import',\n              ['type-parent', 'type-sibling', 'type-index', 'type-internal'],\n              'unknown',\n            ],\n            newlinesBetween: 'ignore',\n            newlinesInside: 'ignore',\n            order: 'asc',\n            type: 'natural',\n          },\n        ],\n        'perfectionist/sort-named-exports': [\n          'error',\n          { order: 'asc', type: 'natural' },\n        ],\n        'perfectionist/sort-named-imports': [\n          'error',\n          { order: 'asc', type: 'natural' },\n        ],\n      },\n    },\n  ]\n}\n","import {\n  GLOB_CSS,\n  GLOB_LESS,\n  GLOB_MARKDOWN,\n  GLOB_MDX,\n  GLOB_POSTCSS,\n  GLOB_SCSS,\n  GLOB_TOML,\n  GLOB_YAML,\n} from '../globs'\nimport { interopDefault, parserPlain } from '../utils'\nimport type { RequiredOptions } from 'prettier'\nimport type { ConfigItem } from '../types'\n\nexport type PrettierRequiredOptions = Partial<RequiredOptions>\n\nexport type PrettierConfig = ({\n  options,\n}: PrettierRequiredOptions & {\n  tailwindcss?: boolean\n}) => Promise<ConfigItem[]>\n\nexport const prettier: PrettierConfig = async ({ tailwindcss, ...options }) => {\n  const [pluginPrettier, recommendedPrettier] = await Promise.all([\n    interopDefault(import('eslint-plugin-prettier')),\n    interopDefault(import('eslint-plugin-prettier/recommended')),\n  ])\n\n  const defaultPrettierOptions: PrettierRequiredOptions = {\n    quoteProps: 'consistent',\n    semi: false,\n    singleQuote: true,\n    jsxSingleQuote: true,\n  }\n\n  const plainFileRules: ConfigItem[] = [\n    {\n      name: 'eslint/prettier/markdown',\n      files: [GLOB_MARKDOWN],\n      parser: 'markdown',\n    },\n    {\n      name: 'eslint/prettier/mdx',\n      files: [GLOB_MDX],\n      parser: 'mdx',\n    },\n    {\n      name: 'eslint/prettier/html',\n      files: ['**/*.html'],\n      parser: 'html',\n    },\n    {\n      name: 'eslint/prettier/css',\n      files: [GLOB_CSS, GLOB_POSTCSS],\n      parser: 'css',\n    },\n    {\n      name: 'eslint/prettier/scss',\n      files: [GLOB_SCSS],\n      parser: 'scss',\n    },\n    {\n      name: 'eslint/prettier/less',\n      files: [GLOB_LESS],\n      parser: 'less',\n    },\n    {\n      name: 'eslint/prettier/yaml',\n      files: [GLOB_YAML],\n      parser: 'yaml',\n    },\n    {\n      name: 'eslint/prettier/graphql',\n      files: ['**/*.graphql'],\n      parser: 'graphql',\n    },\n  ].map((rule) => ({\n    name: rule.name,\n    files: rule.files,\n    languageOptions: {\n      parser: parserPlain,\n    },\n    rules: {\n      'prettier/prettier': [\n        'warn',\n        {\n          parser: rule.parser,\n\n          ...defaultPrettierOptions,\n          ...options,\n        },\n      ],\n    },\n  }))\n\n  return [\n    {\n      name: 'eslint/prettier/setup',\n      plugins: {\n        prettier: pluginPrettier,\n      },\n    },\n    {\n      name: 'eslint/prettier/rules',\n      ignores: [GLOB_TOML],\n      rules: {\n        // disable rules with prettier conflicts\n        ...recommendedPrettier.rules,\n\n        // eslint-plugin-prettier recommended rules\n        ...{\n          'arrow-body-style': 'off',\n          'prefer-arrow-callback': 'off',\n        },\n\n        'prettier/prettier': [\n          'warn',\n          {\n            plugins: tailwindcss ? ['prettier-plugin-tailwindcss'] : [],\n            ...defaultPrettierOptions,\n            ...options,\n          },\n        ],\n      },\n    },\n\n    ...plainFileRules,\n  ]\n}\n","import type { ConfigItem } from '../types'\n\n/**\n * Sort package.json\n *\n * Requires `jsonc` config\n */\nexport async function sortPackageJson(): Promise<ConfigItem[]> {\n  return [\n    {\n      name: 'eslint/sort/package-json',\n      files: ['**/package.json'],\n      rules: {\n        'jsonc/sort-array-values': [\n          'error',\n          {\n            order: { type: 'asc' },\n            pathPattern: '^files$',\n          },\n        ],\n        'jsonc/sort-keys': [\n          'error',\n          {\n            order: [\n              'publisher',\n              'name',\n              'displayName',\n              'type',\n              'version',\n              'private',\n              'packageManager',\n              'description',\n              'author',\n              'license',\n              'funding',\n              'homepage',\n              'repository',\n              'bugs',\n              'keywords',\n              'categories',\n              'sideEffects',\n              'exports',\n              'main',\n              'module',\n              'unpkg',\n              'jsdelivr',\n              'types',\n              'typesVersions',\n              'bin',\n              'icon',\n              'files',\n              'engines',\n              'activationEvents',\n              'contributes',\n              'scripts',\n              'peerDependencies',\n              'peerDependenciesMeta',\n              'dependencies',\n              'optionalDependencies',\n              'devDependencies',\n              'pnpm',\n              'overrides',\n              'resolutions',\n              'husky',\n              'simple-git-hooks',\n              'lint-staged',\n              'eslintConfig',\n            ],\n            pathPattern: '^$',\n          },\n          {\n            order: { type: 'asc' },\n            pathPattern:\n              '^(?:dev|peer|optional|bundled)?[Dd]ependencies(Meta)?$',\n          },\n          {\n            order: { type: 'asc' },\n            pathPattern: '^(?:resolutions|overrides|pnpm.overrides)$',\n          },\n          {\n            order: ['types', 'import', 'require', 'default'],\n            pathPattern: '^exports.*$',\n          },\n        ],\n      },\n    },\n  ]\n}\n/**\n * Sort tsconfig.json\n *\n * Requires `jsonc` config\n */\n\nexport async function sortTsconfig(): Promise<ConfigItem[]> {\n  return [\n    {\n      name: 'eslint/sort/tsconfig-json',\n      files: ['**/tsconfig.json', '**/tsconfig.*.json'],\n      rules: {\n        'jsonc/sort-keys': [\n          'error',\n          {\n            order: [\n              'extends',\n              'compilerOptions',\n              'references',\n              'files',\n              'include',\n              'exclude',\n            ],\n            pathPattern: '^$',\n          },\n          {\n            order: [\n              /* Projects */\n              'incremental',\n              'composite',\n              'tsBuildInfoFile',\n              'disableSourceOfProjectReferenceRedirect',\n              'disableSolutionSearching',\n              'disableReferencedProjectLoad',\n              /* Language and Environment */\n              'target',\n              'jsx',\n              'jsxFactory',\n              'jsxFragmentFactory',\n              'jsxImportSource',\n              'lib',\n              'moduleDetection',\n              'noLib',\n              'reactNamespace',\n              'useDefineForClassFields',\n              'emitDecoratorMetadata',\n              'experimentalDecorators',\n              /* Modules */\n              'baseUrl',\n              'rootDir',\n              'rootDirs',\n              'customConditions',\n              'module',\n              'moduleResolution',\n              'moduleSuffixes',\n              'noResolve',\n              'paths',\n              'resolveJsonModule',\n              'resolvePackageJsonExports',\n              'resolvePackageJsonImports',\n              'typeRoots',\n              'types',\n              'allowArbitraryExtensions',\n              'allowImportingTsExtensions',\n              'allowUmdGlobalAccess',\n              /* JavaScript Support */\n              'allowJs',\n              'checkJs',\n              'maxNodeModuleJsDepth',\n              /* Type Checking */\n              'strict',\n              'strictBindCallApply',\n              'strictFunctionTypes',\n              'strictNullChecks',\n              'strictPropertyInitialization',\n              'allowUnreachableCode',\n              'allowUnusedLabels',\n              'alwaysStrict',\n              'exactOptionalPropertyTypes',\n              'noFallthroughCasesInSwitch',\n              'noImplicitAny',\n              'noImplicitOverride',\n              'noImplicitReturns',\n              'noImplicitThis',\n              'noPropertyAccessFromIndexSignature',\n              'noUncheckedIndexedAccess',\n              'noUnusedLocals',\n              'noUnusedParameters',\n              'useUnknownInCatchVariables',\n              /* Emit */\n              'declaration',\n              'declarationDir',\n              'declarationMap',\n              'downlevelIteration',\n              'emitBOM',\n              'emitDeclarationOnly',\n              'importHelpers',\n              'importsNotUsedAsValues',\n              'inlineSourceMap',\n              'inlineSources',\n              'mapRoot',\n              'newLine',\n              'noEmit',\n              'noEmitHelpers',\n              'noEmitOnError',\n              'outDir',\n              'outFile',\n              'preserveConstEnums',\n              'preserveValueImports',\n              'removeComments',\n              'sourceMap',\n              'sourceRoot',\n              'stripInternal',\n              /* Interop Constraints */\n              'allowSyntheticDefaultImports',\n              'esModuleInterop',\n              'forceConsistentCasingInFileNames',\n              'isolatedModules',\n              'preserveSymlinks',\n              'verbatimModuleSyntax',\n              /* Completeness */\n              'skipDefaultLibCheck',\n              'skipLibCheck',\n            ],\n            pathPattern: '^compilerOptions$',\n          },\n        ],\n      },\n    },\n  ]\n}\n","import { GLOB_TESTS } from '../globs'\nimport { interopDefault } from '../utils'\nimport type { ConfigFn } from '../types'\n\nexport type TestConfig = ConfigFn\n\nexport const test: TestConfig = async (options) => {\n  const { overrides = {} } = options\n\n  const [pluginVitest, pluginNoOnlyTests] = await Promise.all([\n    interopDefault(import('@vitest/eslint-plugin')),\n    // @ts-expect-error missing types\n    interopDefault(import('eslint-plugin-no-only-tests')),\n  ] as const)\n\n  return [\n    {\n      name: 'eslint/test/setup',\n      plugins: {\n        test: {\n          ...pluginVitest,\n          rules: {\n            ...pluginVitest.rules,\n            // extend `test/no-only-tests` rule\n            ...pluginNoOnlyTests.rules,\n          },\n        },\n      },\n    },\n    {\n      name: 'eslint/test/rules',\n      files: GLOB_TESTS,\n      rules: {\n        'node/prefer-global/process': 'off',\n\n        'test/consistent-test-it': [\n          'error',\n          { fn: 'it', withinDescribe: 'it' },\n        ],\n        'test/no-identical-title': 'error',\n        'test/no-import-node-test': 'error',\n        'test/no-only-tests': 'error',\n        'test/prefer-hooks-in-order': 'error',\n        'test/prefer-lowercase-title': 'error',\n\n        '@typescript-eslint/explicit-function-return-type': 'off',\n\n        ...overrides,\n      },\n    },\n  ]\n}\n","import { GLOB_TOML } from '..'\nimport { interopDefault } from '../utils'\nimport type { ConfigFn } from '..'\n\nexport type TomlConfig = ConfigFn\n\nexport const toml: TomlConfig = async (options) => {\n  const { overrides = {} } = options\n\n  const [pluginToml, parserToml] = await Promise.all([\n    interopDefault(import('eslint-plugin-toml')),\n    interopDefault(import('toml-eslint-parser')),\n  ] as const)\n\n  return [\n    {\n      name: 'eslint/toml/setup',\n      plugins: {\n        toml: pluginToml,\n      },\n    },\n    {\n      name: 'eslint/toml/rules',\n      files: [GLOB_TOML],\n      languageOptions: {\n        parser: parserToml,\n      },\n      rules: {\n        'toml/comma-style': 'error',\n        'toml/keys-order': 'error',\n        'toml/no-space-dots': 'error',\n        'toml/no-unreadable-number-separator': 'error',\n        'toml/precision-of-fractional-seconds': 'error',\n        'toml/precision-of-integer': 'error',\n        'toml/tables-order': 'error',\n\n        'toml/vue-custom-block/no-parsing-error': 'error',\n\n        'toml/array-bracket-newline': 'error',\n        'toml/array-bracket-spacing': 'error',\n        'toml/array-element-newline': 'error',\n        'toml/indent': ['error', 2],\n        'toml/inline-table-curly-spacing': 'error',\n        'toml/key-spacing': 'error',\n        'toml/padding-line-between-pairs': 'error',\n        'toml/padding-line-between-tables': 'error',\n        'toml/quoted-keys': 'error',\n        'toml/spaced-comment': 'error',\n        'toml/table-bracket-spacing': 'error',\n\n        ...overrides,\n      },\n    },\n  ]\n}\n","import process from 'node:process'\nimport {\n  GLOB_ASTRO_TS,\n  GLOB_MARKDOWN,\n  GLOB_SRC,\n  GLOB_TS,\n  GLOB_TSX,\n} from '../globs'\nimport { interopDefault } from '../utils'\nimport type {\n  ConfigFn,\n  ConfigItem,\n  OptionsComponentExts,\n  OptionsOverrides,\n  OptionsTypeScriptParserOptions,\n  OptionsTypeScriptWithTypes,\n} from '../types'\n\nexport type TypeScriptConfig = (\n  options?: OptionsComponentExts &\n    OptionsTypeScriptWithTypes &\n    OptionsTypeScriptParserOptions &\n    OptionsOverrides & {\n      enableSolid?: boolean\n    },\n) => ReturnType<ConfigFn>\n\nconst typeAwareRules: ConfigItem['rules'] = {\n  'dot-notation': 'off',\n  'no-implied-eval': 'off',\n  '@typescript-eslint/await-thenable': 'error',\n  '@typescript-eslint/dot-notation': ['error', { allowKeywords: true }],\n  '@typescript-eslint/no-floating-promises': 'error',\n  '@typescript-eslint/no-for-in-array': 'error',\n  '@typescript-eslint/no-implied-eval': 'error',\n  '@typescript-eslint/no-misused-promises': 'error',\n  '@typescript-eslint/no-unnecessary-type-assertion': 'error',\n  '@typescript-eslint/no-unsafe-argument': 'error',\n  '@typescript-eslint/no-unsafe-assignment': 'error',\n  '@typescript-eslint/no-unsafe-call': 'error',\n  '@typescript-eslint/no-unsafe-member-access': 'error',\n  '@typescript-eslint/no-unsafe-return': 'error',\n  '@typescript-eslint/promise-function-async': 'error',\n  '@typescript-eslint/restrict-plus-operands': 'error',\n  '@typescript-eslint/restrict-template-expressions': 'error',\n  '@typescript-eslint/return-await': ['error', 'in-try-catch'],\n  '@typescript-eslint/strict-boolean-expressions': [\n    'error',\n    { allowNullableBoolean: true, allowNullableObject: true },\n  ],\n  '@typescript-eslint/switch-exhaustiveness-check': 'error',\n  '@typescript-eslint/unbound-method': 'error',\n}\n\nexport const typescript: TypeScriptConfig = async (options) => {\n  const {\n    overrides = {},\n    componentExts = [],\n    parserOptions = {},\n    tsconfigPath,\n    enableSolid = false,\n  } = options ?? {}\n\n  const isTypeAware = !!tsconfigPath\n\n  const [pluginTs, parserTs] = await Promise.all([\n    interopDefault(import('@typescript-eslint/eslint-plugin')),\n    interopDefault(import('@typescript-eslint/parser')),\n  ] as const)\n\n  return [\n    {\n      // Install the plugins without globs, so they can be configured separately.\n      name: 'eslint/typescript/setup',\n      plugins: {\n        '@typescript-eslint': pluginTs,\n        ...(enableSolid\n          ? {\n              solid: await interopDefault(import('eslint-plugin-solid')),\n            }\n          : {}),\n      },\n    },\n    {\n      name: 'eslint/typescript/rules',\n      files: [GLOB_SRC, ...componentExts.map((ext) => `**/*.${ext}`)],\n      languageOptions: {\n        parser: parserTs,\n        parserOptions: {\n          extraFileExtensions: componentExts.map((ext) => `.${ext}`),\n          sourceType: 'module',\n\n          ...(tsconfigPath\n            ? {\n                project: [tsconfigPath],\n                tsconfigRootDir: process.cwd(),\n              }\n            : {}),\n          ...(parserOptions as any),\n        },\n      },\n      rules: {\n        ...pluginTs.configs['eslint-recommended'].overrides![0].rules!,\n        ...pluginTs.configs.strict.rules!,\n\n        ...(enableSolid\n          ? {\n              'solid/jsx-no-undef': ['error', { typescriptEnabled: true }],\n              'solid/no-unknown-namespaces': 'off',\n            }\n          : {}),\n        'no-dupe-class-members': 'off',\n        'no-redeclare': 'off',\n        'no-use-before-define': 'off',\n        'no-useless-constructor': 'off',\n        '@typescript-eslint/ban-ts-comment': [\n          'error',\n          { 'ts-expect-error': 'allow-with-description' },\n        ],\n        '@typescript-eslint/consistent-type-definitions': [\n          'error',\n          'interface',\n        ],\n        '@typescript-eslint/consistent-type-imports': [\n          'error',\n          {\n            disallowTypeAnnotations: false,\n            fixStyle: 'separate-type-imports',\n            prefer: 'type-imports',\n          },\n        ],\n\n        // https://www.totaltypescript.com/method-shorthand-syntax-considered-harmful\n        '@typescript-eslint/method-signature-style': ['error', 'property'],\n        '@typescript-eslint/no-dupe-class-members': 'error',\n        '@typescript-eslint/no-dynamic-delete': 'off',\n        '@typescript-eslint/no-empty-object-type': [\n          'error',\n          { allowInterfaces: 'always' },\n        ],\n        '@typescript-eslint/no-explicit-any': 'off',\n        '@typescript-eslint/no-extraneous-class': 'off',\n        '@typescript-eslint/no-import-type-side-effects': 'error',\n        '@typescript-eslint/no-invalid-void-type': 'off',\n        '@typescript-eslint/no-non-null-assertion': 'off',\n        '@typescript-eslint/no-redeclare': ['error', { builtinGlobals: false }],\n        '@typescript-eslint/no-require-imports': 'error',\n        '@typescript-eslint/no-unused-expressions': [\n          'error',\n          {\n            allowShortCircuit: true,\n            allowTaggedTemplates: true,\n            allowTernary: true,\n          },\n        ],\n        '@typescript-eslint/no-unused-vars': 'off',\n        '@typescript-eslint/no-use-before-define': [\n          'error',\n          { classes: false, functions: false, variables: true },\n        ],\n        '@typescript-eslint/no-useless-constructor': 'off',\n        '@typescript-eslint/no-wrapper-object-types': 'error',\n        '@typescript-eslint/triple-slash-reference': 'off',\n        '@typescript-eslint/unified-signatures': 'off',\n\n        ...overrides,\n      },\n    },\n    ...((isTypeAware\n      ? [\n          {\n            name: 'eslint/typescript/rules-type-aware',\n            files: [GLOB_TS, GLOB_TSX],\n            ignores: [`${GLOB_MARKDOWN}/**`, `${GLOB_ASTRO_TS}/**`],\n            rules: {\n              ...typeAwareRules,\n            },\n          },\n        ]\n      : []) satisfies ConfigItem[]),\n    {\n      name: 'eslint/typescript/dts-overrides',\n      files: ['**/*.d.ts'],\n      rules: {\n        'eslint-comments/no-unlimited-disable': 'off',\n        'import/no-duplicates': 'off',\n        'no-restricted-syntax': 'off',\n        'unused-imports/no-unused-vars': 'off',\n      },\n    },\n    {\n      name: 'eslint/typescript/disables/test',\n      files: ['**/*.{test,spec}.ts?(x)'],\n      rules: {\n        'no-unused-expressions': 'off',\n      },\n    },\n    {\n      name: 'eslint/typescript/disables/cjs',\n      files: ['**/*.js', '**/*.cjs'],\n      rules: {\n        '@typescript-eslint/no-require-imports': 'off',\n        '@typescript-eslint/no-var-requires': 'off',\n      },\n    },\n  ]\n}\n","import { interopDefault } from '../utils'\nimport type { ConfigItem } from '../types'\n\nexport async function unicorn(): Promise<ConfigItem[]> {\n  const pluginUnicorn = await interopDefault(import('eslint-plugin-unicorn'))\n\n  return [\n    {\n      name: 'eslint/unicorn/rules',\n      plugins: {\n        unicorn: pluginUnicorn,\n      },\n      rules: {\n        'unicorn/consistent-empty-array-spread': 'error',\n        'unicorn/escape-case': 'error',\n        'unicorn/new-for-builtins': 'error',\n        // Pass error message when throwing errors\n        'unicorn/error-message': 'error',\n        // Uppercase regex escapes\n        'unicorn/consistent-function-scoping': [\n          'error',\n          { checkArrowFunctions: false },\n        ],\n        'unicorn/no-instanceof-builtins': 'error',\n        // Ban `new Array` as `Array` constructor's params are ambiguous\n        'unicorn/no-new-array': 'error',\n        // Prevent deprecated `new Buffer()`\n        'unicorn/no-new-buffer': 'error',\n        // Lowercase number formatting for octal, hex, binary (0x1'error' instead of 0X1'error')\n        'unicorn/number-literal-case': 'error',\n        // textContent instead of innerText\n        'unicorn/prefer-dom-node-text-content': 'error',\n        // includes over indexOf when checking for existence\n        'unicorn/prefer-includes': 'error',\n        // Prefer using the node: protocol\n        'unicorn/prefer-node-protocol': 'error',\n        // Prefer using number properties like `Number.isNaN` rather than `isNaN`\n        'unicorn/prefer-number-properties': 'error',\n        // String methods startsWith/endsWith instead of more complicated stuff\n        'unicorn/prefer-string-starts-ends-with': 'error',\n        // Enforce throwing type error when throwing error while checking typeof\n        'unicorn/prefer-type-error': 'error',\n        // Use new when throwing error\n        'unicorn/throw-new-error': 'error',\n      },\n    },\n  ]\n}\n","import { GLOB_VUE } from '../globs'\nimport { interopDefault } from '../utils'\nimport type { ConfigFn, OptionsHasTypeScript, OptionsOverrides } from '../types'\n\nexport type VueConfig = (\n  options: OptionsHasTypeScript & OptionsOverrides,\n) => ReturnType<ConfigFn>\n\nexport const vue: VueConfig = async (options = {}) => {\n  const { overrides = {}, typescript: isTypescript } = options\n\n  const [pluginVue, parserVue] = await Promise.all([\n    interopDefault(import('eslint-plugin-vue')),\n    interopDefault(import('vue-eslint-parser')),\n  ] as const)\n\n  return [\n    {\n      name: 'eslint/vue/setup',\n      plugins: {\n        vue: pluginVue,\n      },\n    },\n    {\n      name: 'eslint/vue/rules',\n      files: [GLOB_VUE],\n      languageOptions: {\n        parser: parserVue,\n        parserOptions: {\n          ecmaFeatures: {\n            jsx: true,\n          },\n          extraFileExtensions: ['.vue'],\n          parser: isTypescript\n            ? ((await interopDefault(\n                import('@typescript-eslint/parser'),\n              )) as any)\n            : null,\n          sourceType: 'module',\n        },\n      },\n      processor: pluginVue.processors['.vue'],\n      rules: {\n        ...pluginVue.configs.base.rules,\n\n        ...(pluginVue.configs['flat/essential']\n          .map((c) => c.rules)\n          .reduce((acc, c) => ({ ...acc, ...c }), {}) as any),\n        ...(pluginVue.configs['flat/strongly-recommended']\n          .map((c) => c.rules)\n          .reduce((acc, c) => ({ ...acc, ...c }), {}) as any),\n        ...(pluginVue.configs['flat/recommended']\n          .map((c) => c.rules)\n          .reduce((acc, c) => ({ ...acc, ...c }), {}) as any),\n\n        'node/prefer-global/process': 'off',\n\n        'vue/block-order': [\n          'error',\n          {\n            order: ['script', 'template', 'style'],\n          },\n        ],\n        'vue/component-name-in-template-casing': [\n          'error',\n          'PascalCase',\n          {\n            registeredComponentsOnly: false,\n          },\n        ],\n        'vue/component-options-name-casing': ['error', 'PascalCase'],\n        'vue/custom-event-name-casing': ['error', 'camelCase'],\n        'vue/define-macros-order': [\n          'error',\n          {\n            order: [\n              'defineOptions',\n              'defineProps',\n              'defineEmits',\n              'defineSlots',\n            ],\n          },\n        ],\n        'vue/dot-location': ['error', 'property'],\n        'vue/dot-notation': ['error', { allowKeywords: true }],\n        'vue/eqeqeq': ['error', 'smart'],\n        'vue/html-indent': ['error', 2],\n        'vue/html-quotes': ['error', 'double'],\n        'vue/max-attributes-per-line': 'off',\n        'vue/multi-word-component-names': 'off',\n        'vue/no-dupe-keys': 'off',\n        'vue/no-empty-pattern': 'error',\n        'vue/no-irregular-whitespace': 'error',\n        'vue/no-loss-of-precision': 'error',\n        'vue/no-restricted-syntax': [\n          'error',\n          'DebuggerStatement',\n          'LabeledStatement',\n          'WithStatement',\n        ],\n        'vue/no-restricted-v-bind': ['error', '/^v-/'],\n        'vue/no-setup-props-reactivity-loss': 'off',\n        'vue/no-sparse-arrays': 'error',\n        'vue/no-unused-refs': 'error',\n        'vue/no-useless-v-bind': 'error',\n        'vue/no-v-html': 'off',\n        'vue/object-shorthand': [\n          'error',\n          'always',\n          {\n            avoidQuotes: true,\n            ignoreConstructors: false,\n          },\n        ],\n        'vue/prefer-separate-static-class': 'error',\n        'vue/prefer-template': 'error',\n        'vue/require-default-prop': 'off',\n        'vue/require-prop-types': 'off',\n        'vue/space-infix-ops': 'error',\n        'vue/space-unary-ops': ['error', { nonwords: false, words: true }],\n\n        'vue/array-bracket-spacing': ['error', 'never'],\n        'vue/arrow-spacing': ['error', { after: true, before: true }],\n        'vue/block-spacing': ['error', 'always'],\n        'vue/block-tag-newline': [\n          'error',\n          {\n            multiline: 'always',\n            singleline: 'always',\n          },\n        ],\n        'vue/brace-style': ['error', 'stroustrup', { allowSingleLine: true }],\n        'vue/comma-dangle': ['error', 'always-multiline'],\n        'vue/comma-spacing': ['error', { after: true, before: false }],\n        'vue/comma-style': ['error', 'last'],\n        'vue/html-comment-content-spacing': [\n          'error',\n          'always',\n          {\n            exceptions: ['-'],\n          },\n        ],\n        'vue/key-spacing': ['error', { afterColon: true, beforeColon: false }],\n        'vue/keyword-spacing': ['error', { after: true, before: true }],\n        'vue/object-curly-newline': 'off',\n        'vue/object-curly-spacing': ['error', 'always'],\n        'vue/object-property-newline': [\n          'error',\n          { allowMultiplePropertiesPerLine: true },\n        ],\n        'vue/operator-linebreak': ['error', 'before'],\n        'vue/padding-line-between-blocks': ['error', 'always'],\n        'vue/quote-props': ['error', 'consistent-as-needed'],\n        'vue/space-in-parens': ['error', 'never'],\n        'vue/template-curly-spacing': 'error',\n\n        ...overrides,\n      },\n    },\n  ]\n}\n","import { GLOB_YAML } from '../globs'\nimport { interopDefault } from '../utils'\nimport type { ConfigFn, OptionsOverrides } from '../types'\n\nexport type YmlConfig = (options: OptionsOverrides) => ReturnType<ConfigFn>\n\nexport const yml: YmlConfig = async (options) => {\n  const { overrides = {} } = options\n\n  const [pluginYml, parserYml] = await Promise.all([\n    interopDefault(import('eslint-plugin-yml')),\n    interopDefault(import('yaml-eslint-parser')),\n  ] as const)\n\n  return [\n    {\n      name: 'eslint/yaml/setup',\n      plugins: {\n        yml: pluginYml,\n      },\n    },\n    {\n      name: 'eslint/yaml/rules',\n      files: [GLOB_YAML],\n      languageOptions: {\n        parser: parserYml,\n      },\n      rules: {\n        // recommended rules\n        'yml/no-empty-document': 'error',\n        'yml/no-empty-key': 'error',\n        'yml/no-empty-mapping-value': 'error',\n        'yml/no-empty-sequence-entry': 'error',\n        'yml/no-irregular-whitespace': 'error',\n        'yml/no-tab-indent': 'error',\n        'yml/vue-custom-block/no-parsing-error': 'error',\n\n        // standard rules\n        'yml/block-mapping-colon-indicator-newline': 'error',\n        'yml/block-mapping-question-indicator-newline': 'error',\n        'yml/block-mapping': 'error',\n        'yml/block-sequence-hyphen-indicator-newline': 'error',\n        'yml/block-sequence': 'error',\n        'yml/flow-mapping-curly-newline': 'error',\n        'yml/flow-mapping-curly-spacing': 'error',\n        'yml/flow-sequence-bracket-newline': 'error',\n        'yml/flow-sequence-bracket-spacing': 'error',\n        'yml/indent': 'error',\n        'yml/key-spacing': 'error',\n        'yml/no-multiple-empty-lines': 'error',\n        'yml/no-trailing-zeros': 'error',\n        'yml/plain-scalar': 'error',\n        'yml/quotes': 'error',\n        'yml/spaced-comment': 'error',\n\n        ...overrides,\n      },\n    },\n  ]\n}\n","import { GLOB_JSX, GLOB_TS, GLOB_TSX } from '../globs'\nimport { combine, interopDefault } from '../utils'\nimport type {\n  ConfigFn,\n  ConfigItem,\n  OptionsOverrides,\n  OptionsTypeScriptWithTypes,\n} from '../types'\n\nexport type ReactConfig = (\n  options: {\n    next?: boolean\n    compiler?: boolean\n  } & OptionsOverrides &\n    OptionsTypeScriptWithTypes,\n) => ReturnType<ConfigFn>\n\nasync function next(): Promise<ConfigItem[]> {\n  const pluginNext = await interopDefault(import('@next/eslint-plugin-next'))\n\n  return [\n    {\n      name: 'eslint/next/setup',\n      plugins: {\n        '@next/next': pluginNext,\n      },\n    },\n    {\n      name: 'eslint/next/rules',\n      files: [GLOB_TSX, GLOB_JSX],\n      languageOptions: {\n        parserOptions: {\n          sourceType: 'module',\n          ecmaFeatures: {\n            jsx: true,\n          },\n        },\n      },\n      settings: {\n        react: {\n          version: 'detect',\n        },\n      },\n      rules: {\n        ...pluginNext.configs.recommended.rules,\n        // ...pluginNext.configs['core-web-vitals'].rules,\n\n        'react-refresh/only-export-components': [\n          'warn',\n          {\n            allowExportNames: [\n              // https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config\n              'dynamic',\n              'dynamicParams',\n              'revalidate',\n              'fetchCache',\n              'runtime',\n              'preferredRegion',\n              'maxDuration',\n              // https://nextjs.org/docs/app/api-reference/functions/generate-static-params\n              'generateStaticParams',\n              // https://nextjs.org/docs/app/api-reference/functions/generate-metadata\n              'metadata',\n              'generateMetadata',\n              // https://nextjs.org/docs/app/api-reference/functions/generate-viewport\n              'viewport',\n              'generateViewport',\n              // https://nextjs.org/docs/app/api-reference/functions/generate-image-metadata\n              'generateImageMetadata',\n              // https://nextjs.org/docs/app/api-reference/functions/generate-sitemaps\n              'generateSitemaps',\n            ],\n          },\n        ],\n      },\n    },\n  ]\n}\n\nexport const react: ReactConfig = async (options): Promise<ConfigItem[]> => {\n  const {\n    next: enableNext = false,\n    compiler: enableCompiler = false,\n    overrides = {},\n    tsconfigPath,\n  } = options\n\n  const isTypeAware = !!tsconfigPath\n\n  const [pluginsReact, pluginReactHooks, pluginReactRefresh] =\n    await Promise.all([\n      interopDefault(import('@eslint-react/eslint-plugin')),\n      interopDefault(import('eslint-plugin-react-hooks')),\n      interopDefault(import('eslint-plugin-react-refresh')),\n    ] as const)\n\n  const plugins = (pluginsReact.configs.all as any).plugins\n\n  const {\n    '@eslint-react': pluginReactX,\n    '@eslint-react/dom': pluginReactDom,\n    '@eslint-react/hooks-extra': pluginReactHooksExtra,\n    '@eslint-react/naming-convention': pluginReactNamingConvention,\n    '@eslint-react/web-api': pluginReactWebApi,\n  } = plugins\n\n  const typeAwareRules: ConfigItem['rules'] = {\n    'react/no-leaked-conditional-rendering': 'warn',\n    'react/no-implicit-key': 'error',\n  }\n\n  const _react: ConfigItem[] = [\n    {\n      name: 'eslint/react/setup',\n      plugins: {\n        'react': pluginReactX,\n        'react-dom': pluginReactDom,\n        'react-hooks-extra': pluginReactHooksExtra,\n        'react-naming-convention': pluginReactNamingConvention,\n        'react-web-api': pluginReactWebApi,\n\n        'react-hooks': pluginReactHooks,\n        'react-refresh': pluginReactRefresh,\n        ...(enableCompiler\n          ? {\n              'react-compiler': await interopDefault(\n                // @ts-expect-error missing types\n                import('eslint-plugin-react-compiler'),\n              ),\n            }\n          : {}),\n      },\n    },\n    {\n      name: 'eslint/react/rules',\n      files: [GLOB_TSX, GLOB_JSX],\n      languageOptions: {\n        sourceType: 'module',\n        parserOptions: {\n          ecmaFeatures: {\n            jsx: true,\n          },\n        },\n      },\n      settings: {\n        react: {\n          version: 'detect',\n        },\n      },\n      rules: {\n        // recommended rules from eslint-plugin-react-x https://eslint-react.xyz/docs/rules/overview#core-rules\n        'react/jsx-key-before-spread': 'warn',\n        'react/jsx-no-comment-textnodes': 'warn',\n        'react/jsx-no-duplicate-props': 'warn',\n        'react/jsx-uses-react': 'warn',\n        'react/jsx-uses-vars': 'warn',\n        'react/no-access-state-in-setstate': 'error',\n        'react/no-array-index-key': 'warn',\n        'react/no-children-count': 'warn',\n        'react/no-children-for-each': 'warn',\n        'react/no-children-map': 'warn',\n        'react/no-children-only': 'warn',\n        'react/no-children-to-array': 'warn',\n        'react/no-clone-element': 'warn',\n        'react/no-component-will-mount': 'error',\n        'react/no-component-will-receive-props': 'error',\n        'react/no-component-will-update': 'error',\n        'react/no-context-provider': 'warn',\n        'react/no-create-ref': 'error',\n        'react/no-default-props': 'error',\n        'react/no-direct-mutation-state': 'error',\n        'react/no-duplicate-key': 'error',\n        'react/no-forward-ref': 'warn',\n        'react/no-missing-key': 'error',\n        'react/no-nested-component-definitions': 'error',\n        'react/no-nested-lazy-component-declarations': 'error',\n        'react/no-prop-types': 'error',\n        'react/no-redundant-should-component-update': 'error',\n        'react/no-set-state-in-component-did-mount': 'warn',\n        'react/no-set-state-in-component-did-update': 'warn',\n        'react/no-set-state-in-component-will-update': 'warn',\n        'react/no-string-refs': 'error',\n        'react/no-unnecessary-use-prefix': 'warn',\n        'react/no-unsafe-component-will-mount': 'warn',\n        'react/no-unsafe-component-will-receive-props': 'warn',\n        'react/no-unsafe-component-will-update': 'warn',\n        'react/no-use-context': 'warn',\n        'react/no-useless-forward-ref': 'warn',\n        'react/prefer-use-state-lazy-initialization': 'warn',\n        'react/prefer-namespace-import': 'error',\n\n        // recommended rules from eslint-plugin-react-dom https://eslint-react.xyz/docs/rules/overview#dom-rules\n        'react-dom/no-dangerously-set-innerhtml': 'warn',\n        'react-dom/no-dangerously-set-innerhtml-with-children': 'error',\n        'react-dom/no-find-dom-node': 'error',\n        'react-dom/no-flush-sync': 'error',\n        'react-dom/no-hydrate': 'error',\n        'react-dom/no-namespace': 'error',\n        'react-dom/no-render': 'error',\n        'react-dom/no-render-return-value': 'error',\n        'react-dom/no-script-url': 'warn',\n        'react-dom/no-unsafe-iframe-sandbox': 'warn',\n        'react-dom/no-use-form-state': 'error',\n        'react-dom/no-void-elements-with-children': 'error',\n\n        // recommended rules eslint-plugin-react-hooks https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/README.md\n        // Core hooks rules\n        'react-hooks/rules-of-hooks': 'error',\n        'react-hooks/exhaustive-deps': 'warn',\n\n        // recommended rules from eslint-plugin-react-hooks-extra https://eslint-react.xyz/docs/rules/overview#hooks-extra-rules\n        'react-hooks-extra/no-direct-set-state-in-use-effect': 'warn',\n\n        // recommended rules from eslint-plugin-react-web-api https://eslint-react.xyz/docs/rules/overview#web-api-rules\n        'react-web-api/no-leaked-event-listener': 'warn',\n        'react-web-api/no-leaked-interval': 'warn',\n        'react-web-api/no-leaked-resize-observer': 'warn',\n        'react-web-api/no-leaked-timeout': 'warn',\n\n        // React Refresh\n        'react-refresh/only-export-components': 'warn',\n\n        // React Compiler\n        ...(enableCompiler\n          ? {\n              'react-compiler/react-compiler': 'error',\n              'react-hooks/config': 'error',\n              'react-hooks/error-boundaries': 'error',\n              'react-hooks/component-hook-factories': 'error',\n              'react-hooks/gating': 'error',\n              'react-hooks/globals': 'error',\n              'react-hooks/immutability': 'error',\n              'react-hooks/preserve-manual-memoization': 'error',\n              'react-hooks/purity': 'error',\n              'react-hooks/refs': 'error',\n              'react-hooks/set-state-in-effect': 'error',\n              'react-hooks/set-state-in-render': 'error',\n              'react-hooks/static-components': 'error',\n              'react-hooks/unsupported-syntax': 'warn',\n              'react-hooks/use-memo': 'error',\n              'react-hooks/incompatible-library': 'warn',\n            }\n          : {}),\n\n        'jsx-quotes': ['error', 'prefer-double'],\n        'react/react-in-jsx-scope': 'off',\n        'react/jsx-indent': [1, 2],\n        'react/jsx-indent-props': [1, 2],\n        'react/jsx-closing-bracket-location': [\n          1,\n          { selfClosing: 'tag-aligned', nonEmpty: 'tag-aligned' },\n        ],\n\n        ...overrides,\n      },\n    },\n    ...(isTypeAware\n      ? [\n          {\n            name: 'eslint/react/type-aware-rules',\n            files: [GLOB_TS, GLOB_TSX],\n            rules: {\n              ...typeAwareRules,\n            },\n          },\n        ]\n      : []),\n  ]\n\n  return combine(_react, enableNext ? next() : [])\n}\n","import { interopDefault } from '../utils'\nimport type { ConfigFn, ConfigItem, OptionsOverrides } from '../types'\n\nexport type TailwindcssConfig = (\n  options: {\n    settings?: {\n      entryPoint?: string\n      tailwindConfig?: string\n      tsconfig?: string\n      attributes?: string[]\n      callees?: string[]\n      variables?: string[]\n    }\n  } & OptionsOverrides,\n) => ReturnType<ConfigFn>\n\nexport const tailwindcss: TailwindcssConfig = async (\n  options,\n): Promise<ConfigItem[]> => {\n  const { overrides = {} } = options\n  const pluginBetterTailwindcss = await interopDefault(\n    import('eslint-plugin-better-tailwindcss'),\n  )\n\n  return [\n    {\n      name: 'eslint/better-tailwindcss/rules',\n      settings: {\n        'better-tailwindcss': {\n          entryPoint: 'src/global.css',\n          ...options.settings,\n        },\n      },\n      plugins: {\n        'better-tailwindcss': pluginBetterTailwindcss,\n      },\n      rules: {\n        'better-tailwindcss/no-unknown-classes': 'warn',\n        'better-tailwindcss/no-conflicting-classes': 'warn',\n        'better-tailwindcss/no-unnecessary-whitespace': 'warn',\n        'better-tailwindcss/no-duplicate-classes': 'warn',\n        'better-tailwindcss/enforce-consistent-class-order': 'warn',\n\n        ...overrides,\n      },\n    },\n  ]\n}\n","import {\n  comments,\n  ignores,\n  imports,\n  javascript,\n  jsdoc,\n  jsonc,\n  markdown,\n  node,\n  perfectionist,\n  prettier,\n  sortPackageJson,\n  sortTsconfig,\n  test,\n  toml,\n  typescript,\n  unicorn,\n  vue,\n  yml,\n} from '~/configs'\nimport { react } from '~/configs/react'\nimport { tailwindcss } from '~/configs/tailwindcss'\nimport { combine, getConfigOptions } from '~/utils'\nimport type { Awaitable, ConfigItem, OptionsConfig } from '~/types'\n\n/**\n * Construct an array of ESLint flat config items.\n */\nexport function defineConfig(\n  options: OptionsConfig = {},\n  ...userConfigs: ConfigItem[]\n) {\n  const {\n    ignores: enableIgnores = true,\n    vue: enableVue,\n    react: enableReact,\n    solid: enableSolid,\n    typescript: enableTypeScript,\n    tailwindcss: enableTailwindcss,\n    componentExts = [],\n  } = options\n\n  const configs: Awaitable<ConfigItem | ConfigItem[]>[] = []\n  const tsconfigPath =\n    typeof enableTypeScript !== 'boolean'\n      ? enableTypeScript?.tsconfigPath\n      : undefined\n\n  // Base configs\n  configs.push(\n    ignores(getConfigOptions(enableIgnores)),\n    javascript(options.javascript ?? {}),\n    comments(),\n    node(),\n    jsdoc(),\n    imports(),\n    unicorn(),\n\n    perfectionist(),\n  )\n\n  if (enableVue) componentExts.push('vue')\n\n  if (enableTypeScript) {\n    configs.push(\n      typescript({\n        ...(typeof enableTypeScript !== 'boolean' ? enableTypeScript : {}),\n        enableSolid,\n        componentExts,\n      }),\n    )\n  }\n\n  if (options.test ?? true) {\n    configs.push(test(getConfigOptions(options.test)))\n  }\n\n  if (enableVue) {\n    configs.push(\n      vue({\n        ...getConfigOptions(options.vue),\n        typescript: !!enableTypeScript,\n      }),\n    )\n  }\n\n  if (enableReact) {\n    configs.push(\n      react({\n        ...getConfigOptions(enableReact),\n        tsconfigPath,\n      }),\n    )\n  }\n\n  if (options.jsonc ?? true) {\n    configs.push(\n      jsonc(getConfigOptions(options.jsonc)),\n      sortPackageJson(),\n      sortTsconfig(),\n    )\n  }\n\n  if (options.yml ?? true) {\n    configs.push(yml(getConfigOptions(options.yml)))\n  }\n\n  if (options.toml ?? true) {\n    configs.push(toml(getConfigOptions(options.toml)))\n  }\n\n  if (options.markdown ?? true) {\n    configs.push(\n      markdown({\n        ...getConfigOptions(options.markdown),\n        componentExts,\n      }),\n    )\n  }\n\n  if (enableTailwindcss !== 'prettier' && enableTailwindcss) {\n    configs.push(tailwindcss(getConfigOptions(enableTailwindcss)))\n  }\n\n  if (options.prettier ?? true) {\n    configs.push(\n      prettier({\n        ...getConfigOptions(options.prettier),\n        tailwindcss: enableTailwindcss === 'prettier',\n      }),\n    )\n  }\n\n  const merged = combine(...configs, ...userConfigs)\n\n  return merged\n}\n","import { defineConfig } from './factory'\n\nexport * from './configs'\nexport { defineConfig } from './factory'\nexport * from './factory'\nexport * from './globs'\nexport * from './types'\nexport * from './utils'\n\nexport default defineConfig\n"]}