index.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /**
  2. * @fileoverview Package exports for @eslint/eslintrc
  3. * @author Nicholas C. Zakas
  4. */
  5. //------------------------------------------------------------------------------
  6. // Requirements
  7. //------------------------------------------------------------------------------
  8. import {
  9. ConfigArrayFactory,
  10. createContext as createConfigArrayFactoryContext,
  11. loadConfigFile
  12. } from "./config-array-factory.js";
  13. import { CascadingConfigArrayFactory } from "./cascading-config-array-factory.js";
  14. import * as ModuleResolver from "./shared/relative-module-resolver.js";
  15. import { ConfigArray, getUsedExtractedConfigs } from "./config-array/index.js";
  16. import { ConfigDependency } from "./config-array/config-dependency.js";
  17. import { ExtractedConfig } from "./config-array/extracted-config.js";
  18. import { IgnorePattern } from "./config-array/ignore-pattern.js";
  19. import { OverrideTester } from "./config-array/override-tester.js";
  20. import * as ConfigOps from "./shared/config-ops.js";
  21. import ConfigValidator from "./shared/config-validator.js";
  22. import * as naming from "./shared/naming.js";
  23. import { FlatCompat } from "./flat-compat.js";
  24. import environments from "../conf/environments.js";
  25. //-----------------------------------------------------------------------------
  26. // Exports
  27. //-----------------------------------------------------------------------------
  28. const Legacy = {
  29. ConfigArray,
  30. createConfigArrayFactoryContext,
  31. CascadingConfigArrayFactory,
  32. ConfigArrayFactory,
  33. ConfigDependency,
  34. ExtractedConfig,
  35. IgnorePattern,
  36. OverrideTester,
  37. getUsedExtractedConfigs,
  38. environments,
  39. loadConfigFile,
  40. // shared
  41. ConfigOps,
  42. ConfigValidator,
  43. ModuleResolver,
  44. naming
  45. };
  46. export {
  47. Legacy,
  48. FlatCompat
  49. };