|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
950 bytes
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 4 | value: true
|
|---|
| 5 | });
|
|---|
| 6 | exports.meta = void 0;
|
|---|
| 7 | exports.parse = parse;
|
|---|
| 8 | exports.parseForESLint = parseForESLint;
|
|---|
| 9 | var _client = require("./client.cjs");
|
|---|
| 10 | const normalizeESLintConfig = require("./configuration.cjs");
|
|---|
| 11 | const analyzeScope = require("./analyze-scope.cjs");
|
|---|
| 12 | const baseParse = require("./parse.cjs");
|
|---|
| 13 | const client = new _client.LocalClient();
|
|---|
| 14 | const meta = exports.meta = {
|
|---|
| 15 | name: "@babel/eslint-parser",
|
|---|
| 16 | version: "7.28.6"
|
|---|
| 17 | };
|
|---|
| 18 | function parse(code, options = {}) {
|
|---|
| 19 | return baseParse(code, normalizeESLintConfig(options), client);
|
|---|
| 20 | }
|
|---|
| 21 | function 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=index.cjs.map
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.