source: frontend/node_modules/@babel/eslint-parser/lib/experimental-worker.cjs

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago

Fix frontend appearance

  • Property mode set to 100644
File size: 1.0 KB
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.meta = void 0;
7exports.parseForESLint = parseForESLint;
8const [major, minor] = process.versions.node.split(".").map(Number);
9if (major < 12 || major === 12 && minor < 3) {
10 throw new Error("@babel/eslint-parser/experimental-worker requires Node.js >= 12.3.0");
11}
12const normalizeESLintConfig = require("./configuration.cjs");
13const analyzeScope = require("./analyze-scope.cjs");
14const baseParse = require("./parse.cjs");
15const Clients = require("./client.cjs");
16const client = new Clients.WorkerClient();
17const meta = exports.meta = {
18 name: "@babel/eslint-parser/experimental-worker",
19 version: "7.28.6"
20};
21function parseForESLint(code, options = {}) {
22 const normalizedOptions = normalizeESLintConfig(options);
23 const ast = baseParse(code, normalizedOptions, client);
24 const scopeManager = analyzeScope(ast, normalizedOptions, client);
25 return {
26 ast,
27 scopeManager,
28 visitorKeys: client.getVisitorKeys()
29 };
30}
31
32//# sourceMappingURL=experimental-worker.cjs.map
Note: See TracBrowser for help on using the repository browser.