Urara-Blog/node_modules/.pnpm-store/v3/files/9a/1566601a3e97f95a7d80868d6c35fbad85da193a2771cf9560ae0537e2f9f9ac8eabe39621ae11239f96eeacb18721ff6d8384ae515de8dc76ffcc9c8f39f5
2022-08-14 01:14:53 +08:00

23 lines
No EOL
1 KiB
Text

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