index.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. } from "./config-array-factory.js";
  12. import { CascadingConfigArrayFactory } from "./cascading-config-array-factory.js";
  13. import * as ModuleResolver from "./shared/relative-module-resolver.js";
  14. import { ConfigArray, getUsedExtractedConfigs } from "./config-array/index.js";
  15. import { ConfigDependency } from "./config-array/config-dependency.js";
  16. import { ExtractedConfig } from "./config-array/extracted-config.js";
  17. import { IgnorePattern } from "./config-array/ignore-pattern.js";
  18. import { OverrideTester } from "./config-array/override-tester.js";
  19. import * as ConfigOps from "./shared/config-ops.js";
  20. import ConfigValidator from "./shared/config-validator.js";
  21. import * as naming from "./shared/naming.js";
  22. import { FlatCompat } from "./flat-compat.js";
  23. import environments from "../conf/environments.js";
  24. //-----------------------------------------------------------------------------
  25. // Exports
  26. //-----------------------------------------------------------------------------
  27. const Legacy = {
  28. ConfigArray,
  29. createConfigArrayFactoryContext,
  30. CascadingConfigArrayFactory,
  31. ConfigArrayFactory,
  32. ConfigDependency,
  33. ExtractedConfig,
  34. IgnorePattern,
  35. OverrideTester,
  36. getUsedExtractedConfigs,
  37. environments,
  38. // shared
  39. ConfigOps,
  40. ConfigValidator,
  41. ModuleResolver,
  42. naming
  43. };
  44. export {
  45. Legacy,
  46. FlatCompat
  47. };