{"version":3,"file":"index.cjs","names":[],"sources":["../src/ESLintConfig.ts","../src/interopDefault.ts","../src/meta.ts","../src/Project.ts","../src/ProjectScript.ts"],"sourcesContent":["import type { Linter } from 'eslint';\n\n/**\n * Concat multiple flat configs into a single flat config array.\n *\n * It also resolves promises and flattens the result.\n *\n * @example\n *\n * ```ts\n * import eslint from '@eslint/js'\n *\n * export default ESLintConfig.concat(\n *   {\n *     plugins: {},\n *     rules: {},\n *   },\n *   // It can also takes a array of configs:\n *   [\n *     {\n *       plugins: {},\n *       rules: {},\n *     }\n *    // ...\n *   ],\n *   // Or promises:\n *   Promise.resolve({\n *     files: ['*.ts'],\n *     rules: {},\n *   })\n * );\n * ```\n * @param configs\n */\nasync function concat<T extends Linter.Config = Linter.Config>(\n  ...configs: Array<Promise<ReadonlyArray<T>> | Promise<T> | ReadonlyArray<T> | T>\n): Promise<Array<T>> {\n  // eslint-disable-next-line ts/await-thenable\n  const resolved = await Promise.all(configs);\n  return resolved.flat() as Array<T>;\n}\n\n/**\n * Always return 'off'. `_status` is the previous rule value.\n *\n * @param _status\n */\nfunction fixme(_status: [number | string, ...Array<any>] | number | string | undefined) {\n  return 'off' as const;\n}\n\n/**\n * Maps rule names and values using the provided mapping function.\n *\n * @example\n * ```ts\n * ESLintConfig.mapRules(\n *   {\n *     'rule-name': 'error',\n *     'rule-to-drop': 'error',\n *   },\n *   (rule, value) => {\n *     if (rule === 'rule-name') return ['new-rule-name', value];\n *     return undefined;\n *   }\n * ); // { 'new-rule-name': 'error' }\n * ```\n * @param rules\n * @param mapFn\n */\nfunction mapRules(rules: Record<string, any>, mapFn: (rule: string, value: any) => [string, any] | undefined): Record<string, any> {\n  const mappedRules = Object.create(null) as Record<string, any>;\n  for (let index = 0, keys = Object.keys(rules); index < keys.length; index++) {\n    // eslint-disable-next-line ts/no-non-null-assertion\n    const key = keys[index]!;\n    const mapped = mapFn(key, rules[key]);\n    if (mapped == null) continue;\n    // eslint-disable-next-line ts/no-unsafe-assignment\n    mappedRules[mapped[0]] = mapped[1];\n  }\n  // eslint-disable-next-line ts/no-unsafe-argument\n  Object.setPrototypeOf(mappedRules, Object.getPrototypeOf(rules));\n  return mappedRules;\n}\n\n/**\n * Return a new merged flat configuration\n *\n * @param configs\n */\nfunction merge<T extends Linter.Config = Linter.Config>(...configs: Array<T>): T {\n  const keys = new Set(configs.flatMap((i) => Object.keys(i)));\n  const merged = configs.reduce((acc, cur) => {\n    return {\n      ...acc,\n      ...cur,\n      files: [\n        ...(acc.files ?? []),\n        ...(cur.files ?? []),\n      ],\n      ignores: [\n        ...(acc.ignores ?? []),\n        ...(cur.ignores ?? []),\n      ],\n      languageOptions: {\n        ...acc.languageOptions,\n        ...cur.languageOptions,\n      },\n      linterOptions: {\n        ...acc.linterOptions,\n        ...cur.linterOptions,\n      },\n      plugins: {\n        ...acc.plugins,\n        ...cur.plugins,\n      },\n      rules: {\n        ...acc.rules,\n        ...cur.rules,\n      },\n    };\n  }, {} as T);\n\n  // Remove unused keys\n  for (const key of Object.keys(merged)) {\n    if (!keys.has(key))\n      // eslint-disable-next-line ts/no-dynamic-delete, ts/no-unsafe-member-access\n      delete (merged as any)[key];\n  }\n\n  return merged;\n}\n\n/**\n * Renames rules in the given object according to the given map.\n *\n * Given a map `{ 'old-prefix': 'new-prefix' }`, and a rule object\n * `{ 'old-prefix/rule-name': 'error' }`, this function will return\n * `{ 'new-prefix/rule-name': 'error' }`.\n *\n * @param rules The object containing the rules to rename.\n * @param map The object containing the rename map.\n */\nfunction renameRules(rules: Record<string, any>, map: Record<string, string>): Record<string, any> {\n  const mapKeys = Object.keys(map);\n  return mapRules(rules, (key, value) => {\n    // eslint-disable-next-line ts/prefer-for-of\n    for (let index = 0; index < mapKeys.length; index++) {\n      // eslint-disable-next-line ts/no-non-null-assertion\n      const from = mapKeys[index]!;\n      // eslint-disable-next-line ts/no-non-null-assertion\n      const to = map[from]!;\n      if (key.startsWith(`${from}/`)) return [to + key.slice(from.length), value];\n      else if (from === '' && !key.includes('/') && to !== '') return [to + key, value];\n    }\n    return [key, value];\n  });\n}\n\n/**\n * @namespace\n */\nexport const ESLintConfig = Object.freeze({\n  concat,\n  fixme,\n  mapRules,\n  merge,\n  renameRules,\n});\n","// eslint-disable-next-line ts/no-unsafe-return, ts/no-unsafe-member-access\nconst getDefaultOrElse = (_: any) => _?.default ?? _;\n\n/**\n * Resolves a module or promise-like object, returning the default export if available.\n *\n * @example\n * ```ts\n * // modules.ts\n * export default {\n *   foo: true\n * };\n * // Async API\n * const modPromise = import('./module');\n * interopDefault(modPromise); // == Promise.resolve({ foo: true })\n * // Sync API\n * const mod = await import('./module');\n * interopDefault(mod); // == { foo: true }\n * ```\n *\n * @template T - The type of the module or promise-like object.\n * @param m The module or promise-like object to resolve.\n */\nexport function interopDefault<T>(m: PromiseLike<T>): Promise<T extends { default: infer U } ? U : T>;\nexport function interopDefault<T>(m: T): T extends { default: infer U } ? U : T;\nexport function interopDefault<T>(m: PromiseLike<T> | T): Promise<T extends { default: infer U } ? U : T> {\n  // @ts-ignore We know what we are doing\n  // eslint-disable-next-line unicorn/prefer-await, ts/no-unsafe-return\n  return m != null && typeof m.then === 'function' ? Promise.resolve(m).then(getDefaultOrElse) : getDefaultOrElse(m);\n}\n","export const meta = Object.freeze({\n  // @ts-ignore - these variables are injected at build time\n  buildNumber: (typeof __PACKAGE_BUILD_NUMBER__ === 'undefined' ? 0 : __PACKAGE_BUILD_NUMBER__) as number,\n  // @ts-ignore - these variables are injected at build time\n  name: (typeof __PACKAGE_NAME__ === 'undefined' ? '' : __PACKAGE_NAME__) as string,\n  // @ts-ignore - these variables are injected at build time\n  version: (typeof __PACKAGE_VERSION__ === 'undefined' ? '' : __PACKAGE_VERSION__) as string,\n});\n","import type { LanguageId } from './LanguageId.js';\n\nconst reExtension = /^\\./;\n\n/**\n * A type of a file extension\n */\nexport type Extension = `.${string}`;\n\n/**\n * Object hash of all well-known file extension category to file extensions mapping\n */\nexport type ExtensionRegistry = Record<LanguageId, ReadonlyArray<Extension>>;\n\n/**\n * Supported ECMA version\n *\n * @example\n * ```ts\n * Project.ecmaVersion() // 2022\n * ```\n */\nfunction ecmaVersion() {\n  return 2022 as const;\n}\n\nfunction escapeRegExp(value: string) {\n  // eslint-disable-next-line unicorn/prefer-string-raw\n  return value.replaceAll(/[$()*+.?[\\\\\\]^{|}]/g, '\\\\$&'); // $& means the whole matched string\n}\n\nconst registry: ExtensionRegistry = {\n  css: ['.css'],\n  graphql: ['.gql', '.graphql'],\n  javascript: ['.js', '.cjs', '.mjs'],\n  javascriptreact: ['.jsx'],\n  jpeg: ['.jpg', '.jpeg'],\n  json: ['.json'],\n  jsonc: ['.jsonc'],\n  less: ['.less'],\n  markdown: ['.markdown', '.mdown', '.mkd', '.md'],\n  sass: ['.sass'],\n  scss: ['.scss'],\n  typescript: ['.ts', '.cts', '.mts'],\n  typescriptreact: ['.tsx'],\n  vue: ['.vue'],\n  yaml: ['.yaml', '.yml'],\n};\n\n/**\n * Return a list of extensions\n *\n * @example\n * ```ts\n * Project.queryExtensions(['javascript']); // ['.js', '.cjs', ...]\n * Project.queryExtensions(['typescript', 'typescriptreact']); // ['.ts', '.mts', ..., '.tsx']\n * ```\n *\n * @param languages\n */\nfunction queryExtensions(languages: Array<LanguageId>): ReadonlyArray<Extension> {\n  return languages\n    .reduce<Array<Extension>>((previousValue, currentValue) =>\n\n      previousValue.concat(registry[currentValue] ?? ([] as Array<Extension>)), [])\n    // eslint-disable-next-line unicorn/no-array-sort\n    .sort((left, right) => left.localeCompare(right));\n}\n\n/**\n * Supported file extensions\n *\n * @example\n * ```ts\n * Project.sourceExtensions() // ['.ts', '.js', ...]\n * ```\n */\nfunction sourceExtensions() {\n  return queryExtensions(['javascript', 'javascriptreact', 'typescript', 'typescriptreact']);\n}\n\nconst RESOURCE_EXTENSIONS: ReadonlyArray<Extension> = Object.freeze([\n  '.gif',\n  '.png',\n  '.svg',\n  ...queryExtensions(['css', 'graphql', 'jpeg', 'less', 'sass', 'sass', 'yaml']),\n]);\n\n/**\n * Resource file extensions\n *\n * @example\n * ```ts\n * Project.resourceExtensions() // ['.css', '.sass', ...]\n * ```\n */\nfunction resourceExtensions() {\n  return RESOURCE_EXTENSIONS;\n}\n\nconst IGNORED = Object.freeze([\n  'node_modules/',\n  'build/',\n  'cjs/',\n  'coverage/',\n  'dist/',\n  'dts/',\n  'esm/',\n  'lib/',\n  'mjs/',\n  'umd/',\n]);\n\n/**\n * Return a RegExp that will match any list of extensions\n *\n * @param extensions\n * @example\n * ```ts\n * Project.extensionsToRegExp(['.js', '.ts']) // RegExp = /(\\.js|\\.ts)$/\n * ```\n */\nfunction extensionsToRegExp(extensions: ReadonlyArray<Extension>): RegExp {\n  return new RegExp(`(${extensions.map(escapeRegExp).join('|')})$`);\n}\n\n/**\n * Return a list of test glob matchers for a list of extensions.\n * This is useful to generate globs for vitest/jest matchers\n *\n * @param extensions\n * @param options\n * @param options.testExtensions dotted compound extensions (e.g. `.spec`, `.test`)\n * @param options.testFolders\n * @example\n * ```ts\n * Project.extensionsToTestGlob(['.js', '.ts']);\n * // ['<tests-folder-glob>', '<test-suffix-glob>']\n *\n * Project.extensionsToTestGlob(['.js', '.ts'], { testExtensions: ['.unit'] });\n * // ['<tests-folder-glob>', '<custom-test-suffix-glob>']\n * ```\n */\nfunction extensionsToTestGlob(\n  extensions: ReadonlyArray<Extension>,\n  options: {\n    testExtensions?: ReadonlyArray<Extension>;\n    testFolders?: ReadonlyArray<string>;\n  } = {},\n): Array<string> {\n  const {\n    testExtensions = ['.spec', '.test'],\n    testFolders = ['__tests__'],\n  } = options;\n\n  return [\n    ...(testFolders.length === 0 ? [] : [glob({ fileExtensions: [extensions], folderAncestors: testFolders, nested: true })]),\n    ...(testExtensions.length === 0\n      ? []\n      : [glob({ fileExtensions: [testExtensions, extensions], nested: true })]),\n  ];\n}\n\n/**\n * Create a new glob pattern based on the provided options.\n *\n * @param options The glob options to use when generating the glob pattern.\n *\n * @example\n * ```ts\n * Project.glob({ fileExtensions: [['.js', '.ts']] }); // '*.@(js|ts)'\n * Project.glob({ fileExtensions: [['.js']], nested: true }); // '**\\/*.js'\n * ```\n */\nfunction glob(options: Project.glob.Options) {\n  const { fileExtensions = [], fileStem = '*', folderAncestors = [], folderParents = [], nested = false } = options;\n  const nestedGlob = nested === true ? '**/' : '';\n  const ancestorGlob = globAppendIfNotEmpty(globFrom(folderAncestors), '/**/');\n  const parentGlob = globAppendIfNotEmpty(globFrom(folderParents), '/');\n  const stemGlob = typeof fileStem === 'string' ? fileStem : fileStem.length === 0 ? '*' : globOr(fileStem);\n  let extensionsGlob = '';\n  for (const extensionExpression of fileExtensions) {\n    const extensionGlob = typeof extensionExpression === 'string' ? extensionExpression : globExt(extensionExpression);\n    extensionsGlob += extensionGlob;\n  }\n\n  return `${nestedGlob}${ancestorGlob}${parentGlob}${stemGlob}${extensionsGlob}`;\n}\n\nfunction globAppendIfNotEmpty(base: string, append: string): string {\n  return base.length === 0 ? base : `${base}${append}`;\n}\n\nfunction globExt(extensions: ReadonlyArray<Extension>): string {\n  const ext = globOr(extensions.map((_) => _.replace(reExtension, '')));\n  return ext === '' ? '' : `.${ext}`;\n}\n\nfunction globFrom(expression: ReadonlyArray<string> | string): string {\n  return typeof expression === 'string' ? expression : globOr(expression);\n}\n\nfunction globOr(values: ReadonlyArray<string>): string {\n  // eslint-disable-next-line ts/no-non-null-assertion\n  return values.length === 0 ? '' : values.length === 1 ? values[0]! : `@(${values.join('|')})`;\n}\n\n/**\n * Files and folders to always ignore\n *\n * @example\n * ```ts\n * IGNORED // ['node_modules/', 'build/', ...]\n * ```\n */\nfunction ignored() {\n  return IGNORED;\n}\n\nexport const Project = Object.freeze({\n  ecmaVersion,\n  extensionsToRegExp,\n  extensionsToTestGlob,\n  glob,\n  ignored,\n  queryExtensions,\n  resourceExtensions,\n  sourceExtensions,\n});\nexport namespace Project {\n  // eslint-disable-next-line ts/no-shadow\n  export namespace glob {\n    export interface Options {\n\n      /**\n       * An extension stack\n       *\n       * @example\n       * ```ts\n       * Project.glob({ fileExtensions: [['.js']] }); // '*.js'\n       * Project.glob({ fileExtensions: ['.@(js|ts)'] }); // '*.@(js|ts)'\n       * Project.glob({ fileExtensions: [['.js', '.ts']] }); // '*.@(js|ts)'\n       * Project.glob({ fileExtensions: [['.spec', '.test'], ['.js', '.ts', '.tsx']] }); // '*.@(spec|test).@(js|ts|tsx)'\n       * Project.glob({ fileExtensions: [] }); // '*'\n       * ```\n       */\n      fileExtensions?: ReadonlyArray<ReadonlyArray<Extension> | string> | undefined;\n\n      /**\n       * The stem (basename without extension) of the file to match.\n       *\n       * @example\n       * ```ts\n       * Project.glob({ fileStem: 'index', fileExtensions: ['.*'] }); // 'index.*'\n       * ```\n       */\n      fileStem?: ReadonlyArray<string> | string | undefined;\n\n      /**\n       * Ancestor folders to include in the glob pattern.\n       *\n       * @example\n       * ```ts\n       * Project.glob({ ancestorFolders: ['src'] }); // 'src/**​/*'\n       * ```\n       */\n      folderAncestors?: ReadonlyArray<string> | string | undefined;\n\n      /**\n       * Parent folders to include in the glob pattern (immediate parent folders).\n       *\n       * @example\n       * ```ts\n       * Project.glob({ folderParents: ['src'] }); // 'src/*'\n       * ```\n       */\n      folderParents?: ReadonlyArray<string> | string | undefined;\n\n      /**\n       * Whether to match files in nested folders.\n       *\n       * @default false\n       * @example\n       * ```ts\n       * Project.glob({ nested: true }); // '* /*'\n       * Project.glob({ nested: true, fileExtensions: [['.js']] }); // '**\\/*.js'\n       * ```\n       */\n      nested?: boolean | undefined;\n    }\n  }\n}\n","/**\n * Project common scripts\n */\nexport const ProjectScript = {\n  Build: 'build',\n  Clean: 'clean',\n  CodeAnalysis: 'code-analysis',\n  Coverage: 'coverage',\n  Develop: 'develop',\n  Docs: 'docs',\n  Format: 'format',\n  Install: 'install',\n  Lint: 'lint',\n  Prepare: 'prepare',\n  Release: 'release',\n  Rescue: 'rescue',\n  Spellcheck: 'spellcheck',\n  Test: 'test',\n  Typecheck: 'typecheck',\n  Validate: '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