index.js 1.7 KB

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