unsupported-api.js 924 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * @fileoverview APIs that are not officially supported by ESLint.
  3. * These APIs may change or be removed at any time. Use at your
  4. * own risk.
  5. * @author Nicholas C. Zakas
  6. */
  7. "use strict";
  8. //-----------------------------------------------------------------------------
  9. // Requirements
  10. //-----------------------------------------------------------------------------
  11. const { FileEnumerator } = require("./cli-engine/file-enumerator");
  12. const { ESLint: FlatESLint, shouldUseFlatConfig } = require("./eslint/eslint");
  13. const { LegacyESLint } = require("./eslint/legacy-eslint");
  14. const builtinRules = require("./rules");
  15. //-----------------------------------------------------------------------------
  16. // Exports
  17. //-----------------------------------------------------------------------------
  18. module.exports = {
  19. builtinRules,
  20. FlatESLint,
  21. shouldUseFlatConfig,
  22. FileEnumerator,
  23. LegacyESLint
  24. };