odin-js-fundamentals-part-5/node_modules/eslint/lib/api.js

27 lines
715 B
JavaScript
Raw Permalink Normal View History

2024-01-11 08:52:05 +00:00
/**
* @fileoverview Expose out ESLint and CLI to require.
* @author Ian Christian Myers
*/
"use strict";
//-----------------------------------------------------------------------------
// Requirements
//-----------------------------------------------------------------------------
const { ESLint } = require("./eslint");
const { Linter } = require("./linter");
const { RuleTester } = require("./rule-tester");
const { SourceCode } = require("./source-code");
//-----------------------------------------------------------------------------
// Exports
//-----------------------------------------------------------------------------
module.exports = {
Linter,
ESLint,
RuleTester,
SourceCode
};