This commit is contained in:
2023-08-11 10:45:20 +08:00
commit 161ca982f3
31850 changed files with 2706500 additions and 0 deletions

29
node_modules/@babel/eslint-parser/lib/index.cjs generated vendored Normal file
View File

@ -0,0 +1,29 @@
const {
normalizeESLintConfig
} = require("./configuration.cjs");
const analyzeScope = require("./analyze-scope.cjs");
const baseParse = require("./parse.cjs");
const {
LocalClient,
WorkerClient
} = require("./client.cjs");
const client = new LocalClient();
exports.meta = {
name: "@babel/eslint-parser",
version: "7.22.10"
};
exports.parse = function (code, options = {}) {
return baseParse(code, normalizeESLintConfig(options), client);
};
exports.parseForESLint = function (code, options = {}) {
const normalizedOptions = normalizeESLintConfig(options);
const ast = baseParse(code, normalizedOptions, client);
const scopeManager = analyzeScope(ast, normalizedOptions, client);
return {
ast,
scopeManager,
visitorKeys: client.getVisitorKeys()
};
};
//# sourceMappingURL=index.cjs.map