api.js 715 B

1234567891011121314151617181920212223242526
  1. /**
  2. * @fileoverview Expose out ESLint and CLI to require.
  3. * @author Ian Christian Myers
  4. */
  5. "use strict";
  6. //-----------------------------------------------------------------------------
  7. // Requirements
  8. //-----------------------------------------------------------------------------
  9. const { ESLint } = require("./eslint");
  10. const { Linter } = require("./linter");
  11. const { RuleTester } = require("./rule-tester");
  12. const { SourceCode } = require("./source-code");
  13. //-----------------------------------------------------------------------------
  14. // Exports
  15. //-----------------------------------------------------------------------------
  16. module.exports = {
  17. Linter,
  18. ESLint,
  19. RuleTester,
  20. SourceCode
  21. };