1 | ;
|
2 | /* eslint-disable @typescript-eslint/no-namespace */
|
3 | Object.defineProperty(exports, "__esModule", { value: true });
|
4 | exports.ESLint = void 0;
|
5 | const eslint_1 = require("eslint");
|
6 | // We want to export this class always so it's easy for end users to consume.
|
7 | // However on ESLint v6, this class will not exist, so we provide a fallback to make it clear
|
8 | // The only users of this should be users scripting ESLint locally, so _they_ should have the correct version installed.
|
9 | const _ESLint = (eslint_1.ESLint !== null && eslint_1.ESLint !== void 0 ? eslint_1.ESLint : function () {
|
10 | throw new Error('Attempted to construct an ESLint instance on less than ESLint v7.0.0');
|
11 | });
|
12 | /**
|
13 | * The ESLint class is the primary class to use in Node.js applications.
|
14 | * This class depends on the Node.js fs module and the file system, so you cannot use it in browsers.
|
15 | *
|
16 | * If you want to lint code on browsers, use the Linter class instead.
|
17 | *
|
18 | * @since 7.0.0
|
19 | */
|
20 | class ESLint extends _ESLint {
|
21 | }
|
22 | exports.ESLint = ESLint;
|
23 | //# sourceMappingURL=ESLint.js.map |
\ | No newline at end of file |