@depup/babel__eslint-parser 8.0.1-depup.23 → 8.0.5-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/changes.json +4 -4
- package/lib/index.js +4 -4
- package/lib/index.js.map +1 -1
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -13,8 +13,8 @@ npm install @depup/babel__eslint-parser
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [@babel/eslint-parser](https://www.npmjs.com/package/@babel/eslint-parser) @ 8.0.
|
|
17
|
-
| Processed | 2026-
|
|
16
|
+
| Original | [@babel/eslint-parser](https://www.npmjs.com/package/@babel/eslint-parser) @ 8.0.5 |
|
|
17
|
+
| Processed | 2026-09-11 |
|
|
18
18
|
| Smoke test | passed |
|
|
19
19
|
| Deps updated | 3 |
|
|
20
20
|
|
|
@@ -24,7 +24,7 @@ npm install @depup/babel__eslint-parser
|
|
|
24
24
|
|------------|------|-----|
|
|
25
25
|
| eslint-scope | ^9.1.0 | ^9.1.2 |
|
|
26
26
|
| eslint-visitor-keys | ^5.0.0 | ^5.0.1 |
|
|
27
|
-
|
|
|
27
|
+
| verkit | ^0.3.2 | ^0.4.0 |
|
|
28
28
|
|
|
29
29
|
---
|
|
30
30
|
|
package/changes.json
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
"from": "^5.0.0",
|
|
9
9
|
"to": "^5.0.1"
|
|
10
10
|
},
|
|
11
|
-
"
|
|
12
|
-
"from": "^
|
|
13
|
-
"to": "^
|
|
11
|
+
"verkit": {
|
|
12
|
+
"from": "^0.3.2",
|
|
13
|
+
"to": "^0.4.0"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
|
-
"timestamp": "2026-
|
|
16
|
+
"timestamp": "2026-09-11T00:32:19.429Z",
|
|
17
17
|
"totalUpdated": 3
|
|
18
18
|
}
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { types, version } from '@babel/core';
|
|
2
2
|
import * as eslintScope from 'eslint-scope';
|
|
3
3
|
import { getKeys } from 'eslint-visitor-keys';
|
|
4
|
-
import
|
|
4
|
+
import { satisfies } from 'verkit';
|
|
5
5
|
import { getParserPlugins, convertFile, getTokLabels, getVisitorKeys, convertError, WorkerClient } from './configuration-shared.js';
|
|
6
6
|
import { createRequire } from 'node:module';
|
|
7
7
|
|
|
@@ -320,10 +320,10 @@ let client;
|
|
|
320
320
|
function parse$1(code, options) {
|
|
321
321
|
const minSupportedCoreVersion = "^7.2.0 || ^8.0.0";
|
|
322
322
|
if (typeof isRunningMinSupportedCoreVersion !== "boolean") {
|
|
323
|
-
isRunningMinSupportedCoreVersion =
|
|
323
|
+
isRunningMinSupportedCoreVersion = satisfies(version, minSupportedCoreVersion);
|
|
324
324
|
}
|
|
325
325
|
if (!isRunningMinSupportedCoreVersion) {
|
|
326
|
-
throw new Error(`@babel/eslint-parser@${"8.0.
|
|
326
|
+
throw new Error(`@babel/eslint-parser@${"8.0.5"} does not support @babel/core@${version}. Please upgrade to @babel/core@${minSupportedCoreVersion}.`);
|
|
327
327
|
}
|
|
328
328
|
if (options.babelOptions.babelrc === false && options.babelOptions.configFile === false) {
|
|
329
329
|
const parserOpts = {
|
|
@@ -359,7 +359,7 @@ function parse$1(code, options) {
|
|
|
359
359
|
|
|
360
360
|
const meta = {
|
|
361
361
|
name: "@babel/eslint-parser",
|
|
362
|
-
version: "8.0.
|
|
362
|
+
version: "8.0.5"
|
|
363
363
|
};
|
|
364
364
|
function parse(code, options = {}) {
|
|
365
365
|
return parse$1(code, normalizeESLintConfig(options));
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/configuration.ts","../src/analyze-scope.ts","../src/parse.ts","../src/index.ts"],"sourcesContent":["import type { Options } from \"./types\";\n\nexport default function normalizeESLintConfig(options: any) {\n const {\n babelOptions = {},\n // ESLint sets ecmaVersion: undefined when ecmaVersion is not set in the config.\n ecmaVersion = \"latest\",\n sourceType = \"module\",\n requireConfigFile = true,\n ...otherOptions\n } = options;\n\n return {\n babelOptions: {\n cwd: process.cwd(),\n ...babelOptions,\n browserslistConfigFile: false,\n },\n ecmaVersion: ecmaVersion === \"latest\" ? 1e8 : ecmaVersion,\n sourceType,\n requireConfigFile,\n ...otherOptions,\n } as Options;\n}\n","import { types as t } from \"@babel/core\";\nimport * as eslintScope from \"eslint-scope\";\n\nconst {\n Definition,\n PatternVisitor: OriginalPatternVisitor,\n Referencer: OriginalReferencer,\n Scope,\n ScopeManager,\n} = eslintScope as unknown as import(\"./types\").Scope;\n\nimport { getKeys as fallback } from \"eslint-visitor-keys\";\n\nlet visitorKeysMap: Record<string, string[]>;\nfunction getVisitorValues(nodeType: string) {\n if (visitorKeysMap) return visitorKeysMap[nodeType];\n\n const flowFlippedAliasKeys = new Set(\n t.FLIPPED_ALIAS_KEYS.Flow.concat([\n \"ArrayPattern\",\n \"ClassDeclaration\",\n \"ClassExpression\",\n \"FunctionDeclaration\",\n \"FunctionExpression\",\n \"Identifier\",\n \"ObjectPattern\",\n \"RestElement\",\n ]),\n );\n\n visitorKeysMap = Object.entries(t.VISITOR_KEYS).reduce(\n (acc, [key, value]) => {\n // @ts-expect-error FIXME: value is not assignable to type string[]\n if (!flowFlippedAliasKeys.has(value)) {\n // @ts-expect-error FIXME: value is not assignable to type string[]\n acc[key] = value;\n }\n return acc;\n },\n {},\n );\n\n return visitorKeysMap[nodeType];\n}\n\nconst propertyTypes = {\n // loops\n callProperties: { type: \"loop\", values: [\"value\"] },\n indexers: { type: \"loop\", values: [\"key\", \"value\"] },\n properties: { type: \"loop\", values: [\"argument\", \"value\"] },\n types: { type: \"loop\" },\n params: { type: \"loop\" },\n // single property\n argument: { type: \"single\" },\n elementType: { type: \"single\" },\n qualification: { type: \"single\" },\n rest: { type: \"single\" },\n returnType: { type: \"single\" },\n // others\n typeAnnotation: { type: \"typeAnnotation\" },\n typeParameters: { type: \"typeParameters\" },\n id: { type: \"id\" },\n};\n\nclass PatternVisitor extends OriginalPatternVisitor {\n ArrayPattern(node: any) {\n node.elements.forEach(this.visit, this);\n }\n\n ObjectPattern(node: any) {\n node.properties.forEach(this.visit, this);\n }\n}\n\nclass Referencer extends OriginalReferencer {\n constructor(options: any, scopeManager: any) {\n super(options, scopeManager);\n }\n\n // inherits.\n visitPattern(node: any, options: any, callback: any) {\n if (!node) {\n return;\n }\n\n // Visit type annotations.\n this._checkIdentifierOrVisit(node.typeAnnotation);\n if (node.type === \"AssignmentPattern\") {\n this._checkIdentifierOrVisit(node.left.typeAnnotation);\n }\n\n // Overwrite `super.visitPattern(node, options, callback)` in order to not visit `ArrayPattern#typeAnnotation` and `ObjectPattern#typeAnnotation`.\n if (typeof options === \"function\") {\n callback = options;\n options = { processRightHandNodes: false };\n }\n\n const visitor = new PatternVisitor(this.options, node, callback);\n visitor.visit(node);\n\n // Process the right hand nodes recursively.\n if (options.processRightHandNodes) {\n visitor.rightHandNodes.forEach(this.visit, this);\n }\n }\n\n // inherits.\n visitClass(node: any) {\n // Decorators.\n this._visitArray(node.decorators);\n\n // Flow type parameters.\n const typeParamScope = this._nestTypeParamScope(node);\n\n // Flow super types.\n this._visitTypeAnnotation(node.implements);\n this._visitTypeAnnotation(node.superTypeArguments?.params);\n\n // Basic.\n super.visitClass(node);\n\n // Close the type parameter scope.\n if (typeParamScope) {\n this.close(node);\n }\n }\n\n // inherits.\n visitFunction(node: any) {\n const typeParamScope = this._nestTypeParamScope(node);\n\n // Flow return types.\n this._checkIdentifierOrVisit(node.returnType);\n\n // Basic.\n super.visitFunction(node);\n\n // Close the type parameter scope.\n if (typeParamScope) {\n this.close(node);\n }\n }\n\n // inherits.\n visitProperty(node: any) {\n if (node.value?.type === \"TypeCastExpression\") {\n this._visitTypeAnnotation(node.value);\n }\n this._visitArray(node.decorators);\n super.visitProperty(node);\n }\n\n InterfaceDeclaration(node: any) {\n this._createScopeVariable(node, node.id);\n\n const typeParamScope = this._nestTypeParamScope(node);\n\n // TODO: Handle mixins\n this._visitArray(node.extends);\n this.visit(node.body);\n\n if (typeParamScope) {\n this.close(node);\n }\n }\n\n TypeAlias(node: any) {\n this._createScopeVariable(node, node.id);\n\n const typeParamScope = this._nestTypeParamScope(node);\n\n this.visit(node.right);\n\n if (typeParamScope) {\n this.close(node);\n }\n }\n\n AccessorProperty(node: any) {\n this._visitClassProperty(node);\n }\n\n PropertyDefinition(node: any) {\n this._visitClassProperty(node);\n }\n\n DeclareModule(node: any) {\n this._visitDeclareX(node);\n }\n\n DeclareFunction(node: any) {\n this._visitDeclareX(node);\n }\n\n DeclareVariable(node: any) {\n this._visitDeclareX(node);\n }\n\n DeclareClass(node: any) {\n this._visitDeclareX(node);\n }\n\n _visitClassProperty(node: any) {\n const { computed, key, typeAnnotation, decorators, value } = node;\n\n this._visitArray(decorators);\n if (computed) this.visit(key);\n this._visitTypeAnnotation(typeAnnotation);\n\n if (value) {\n this.scopeManager.__nestClassFieldInitializerScope(value);\n this.visit(value);\n this.close(value);\n }\n }\n\n _visitDeclareX(node: any) {\n if (node.id) {\n this._createScopeVariable(node, node.id);\n }\n\n const typeParamScope = this._nestTypeParamScope(node);\n if (typeParamScope) {\n this.close(node);\n }\n }\n\n _createScopeVariable(node: any, name: any) {\n this.currentScope().variableScope.__define(\n name,\n new Definition(\"Variable\", name, node),\n );\n }\n\n _nestTypeParamScope(node: any) {\n if (!node.typeParameters) {\n return null;\n }\n\n const parentScope = this.scopeManager.__currentScope;\n const scope = new Scope(\n this.scopeManager,\n \"type-parameters\",\n parentScope,\n node,\n false,\n );\n\n this.scopeManager.__nestScope(scope);\n for (let j = 0; j < node.typeParameters.params.length; j++) {\n const name = node.typeParameters.params[j];\n scope.__define(name, new Definition(\"TypeParameter\", name, name));\n if (name.typeAnnotation) {\n this._checkIdentifierOrVisit(name);\n }\n }\n scope.__define = parentScope.__define.bind(parentScope);\n\n return scope;\n }\n\n _visitTypeAnnotation(node: any) {\n if (!node) {\n return;\n }\n if (Array.isArray(node)) {\n node.forEach(this._visitTypeAnnotation, this);\n return;\n }\n\n // get property to check (params, id, etc...)\n const visitorValues = getVisitorValues(node.type);\n if (!visitorValues) {\n return;\n }\n\n // can have multiple properties\n for (let i = 0; i < visitorValues.length; i++) {\n const visitorValue = visitorValues[i];\n const propertyType = (propertyTypes as Record<string, any>)[visitorValue];\n const nodeProperty = node[visitorValue];\n // check if property or type is defined\n if (propertyType == null || nodeProperty == null) {\n continue;\n }\n if (propertyType.type === \"loop\") {\n for (let j = 0; j < nodeProperty.length; j++) {\n if (Array.isArray(propertyType.values)) {\n for (let k = 0; k < propertyType.values.length; k++) {\n const loopPropertyNode = nodeProperty[j][propertyType.values[k]];\n if (loopPropertyNode) {\n this._checkIdentifierOrVisit(loopPropertyNode);\n }\n }\n } else {\n this._checkIdentifierOrVisit(nodeProperty[j]);\n }\n }\n } else if (propertyType.type === \"single\") {\n this._checkIdentifierOrVisit(nodeProperty);\n } else if (propertyType.type === \"typeAnnotation\") {\n this._visitTypeAnnotation(node.typeAnnotation);\n } else if (propertyType.type === \"typeParameters\") {\n for (let l = 0; l < node.typeParameters.params.length; l++) {\n this._checkIdentifierOrVisit(node.typeParameters.params[l]);\n }\n } else if (propertyType.type === \"id\") {\n if (node.id.type === \"Identifier\") {\n this._checkIdentifierOrVisit(node.id);\n } else {\n this._visitTypeAnnotation(node.id);\n }\n }\n }\n }\n\n _checkIdentifierOrVisit(node: any) {\n if (node?.typeAnnotation) {\n this._visitTypeAnnotation(node.typeAnnotation);\n } else if (node?.type === \"Identifier\") {\n this.visit(node);\n } else {\n this._visitTypeAnnotation(node);\n }\n }\n\n _visitArray(nodeList: any[]) {\n if (nodeList) {\n for (const node of nodeList) {\n this.visit(node);\n }\n }\n }\n}\n\nexport default function analyzeScope(ast: any, parserOptions: any) {\n const options = {\n ignoreEval: true,\n optimistic: false,\n directive: false,\n nodejsScope:\n ast.sourceType === \"script\" &&\n parserOptions.ecmaFeatures?.globalReturn === true,\n impliedStrict: false,\n sourceType: ast.sourceType,\n ecmaVersion: parserOptions.ecmaVersion,\n fallback,\n childVisitorKeys: t.VISITOR_KEYS,\n };\n\n // @ts-expect-error upstream typing issue in the `fallback` property: (node: estree.Node) => readonly string[] is not assignable to type (node: estree.Node) => string[]\n const scopeManager = new ScopeManager(options);\n const referencer = new Referencer(options, scopeManager);\n\n referencer.visit(ast);\n\n return scopeManager as any;\n}\n","import semver from \"semver\";\nimport type { Options } from \"./types\";\nimport { version } from \"@babel/core\";\nimport { WorkerClient, type Client } from \"./client.ts\";\nimport { convertError, convertFile } from \"./convert/index.ts\";\nimport { createRequire } from \"node:module\";\nimport { getTokLabels, getVisitorKeys } from \"./ast-info.ts\";\nimport { getParserPlugins } from \"./worker/configuration.ts\";\n\nconst require = createRequire(import.meta.url);\n\nconst babelParser = require(\n require.resolve(\"@babel/parser\", {\n paths: [require.resolve(\"@babel/core/package.json\")],\n }),\n);\n\nlet isRunningMinSupportedCoreVersion: boolean | null = null;\n\nlet client: Client;\n\nexport default function parse(code: string, options: Options) {\n // Ensure we're using a version of `@babel/core` that includes `parse()` and `tokTypes`.\n const minSupportedCoreVersion = REQUIRED_VERSION(\"^7.2.0 || ^8.0.0\");\n\n if (typeof isRunningMinSupportedCoreVersion !== \"boolean\") {\n isRunningMinSupportedCoreVersion = semver.satisfies(\n version,\n minSupportedCoreVersion,\n );\n }\n\n if (!isRunningMinSupportedCoreVersion) {\n throw new Error(\n `@babel/eslint-parser@${\n PACKAGE_JSON.version\n } does not support @babel/core@${version}. Please upgrade to @babel/core@${minSupportedCoreVersion}.`,\n );\n }\n\n if (\n options.babelOptions.babelrc === false &&\n options.babelOptions.configFile === false\n ) {\n const parserOpts = {\n sourceType: options.sourceType,\n sourceFilename: options.filePath,\n ...(options.sourceType !== \"commonjs\"\n ? {\n allowReturnOutsideFunction:\n options.ecmaFeatures?.globalReturn ?? false,\n }\n : {}),\n ...options.babelOptions.parserOpts,\n plugins: getParserPlugins(options.babelOptions),\n // skip comment attaching for parsing performance\n attachComment: false,\n ranges: true,\n tokens: true,\n };\n try {\n return convertFile(\n babelParser.parse(code, parserOpts),\n code,\n getTokLabels(),\n getVisitorKeys(),\n );\n } catch (err) {\n throw convertError(err);\n }\n }\n\n client ??= new WorkerClient();\n const { ast, parserOptions } = client.maybeParse(code, options);\n if (ast) return ast;\n\n try {\n return convertFile(\n babelParser.parse(code, parserOptions),\n code,\n getTokLabels(),\n getVisitorKeys(),\n );\n } catch (err) {\n throw convertError(err);\n }\n}\n","import type { ESLint, Linter, AST } from \"eslint\";\nimport normalizeESLintConfig from \"./configuration.ts\";\nimport analyzeScope from \"./analyze-scope.ts\";\nimport baseParse from \"./parse.ts\";\n\nimport { getVisitorKeys } from \"./ast-info.ts\";\n\nexport const meta: ESLint.ObjectMetaProperties[\"meta\"] = {\n name: PACKAGE_JSON.name,\n version: PACKAGE_JSON.version,\n};\n\nexport function parse(\n code: string,\n options: Linter.ParserOptions = {},\n): AST.Program {\n return baseParse(code, normalizeESLintConfig(options));\n}\n\nexport function parseForESLint(\n code: string,\n options: Linter.ParserOptions = {},\n): Linter.ESLintParseResult {\n const normalizedOptions = normalizeESLintConfig(options);\n const ast = baseParse(code, normalizedOptions);\n const scopeManager = analyzeScope(ast, normalizedOptions);\n\n return { ast, scopeManager, visitorKeys: getVisitorKeys() };\n}\n\nexport default {\n meta,\n parse,\n parseForESLint,\n};\n"],"names":["t","fallback","require","parse","baseParse"],"mappings":";;;;;;;AAEe,SAAS,qBAAqB,CAAC,OAAY,EAAE;EAC1D,MAAM;IACJ,YAAY,GAAG,EAAE;AAEjB,IAAA,WAAW,GAAG,QAAQ;AACtB,IAAA,UAAU,GAAG,QAAQ;AACrB,IAAA,iBAAiB,GAAG,IAAI;IACxB,GAAG;AACL,GAAC,GAAG,OAAO;EAEX,OAAO;AACL,IAAA,YAAY,EAAE;AACZ,MAAA,GAAG,EAAE,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M;IAAE,GAAG;AAAE,IAAA;GAAe,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC;EAC/D,IAAI,GAAG,EAAE,OAAO,GAAG;EAEnB,IAAI;IACF,OAAO,WAAW,CAChB,WAAW,CAAC,KAAK,CAAC,IAAI,EAAE,aAAa,CAAC,EACtC,IAAI,EACJ,YAAY,EAAE,EACd,cAAc,EAChB,CAAC;EACH,CAAC,CAAC,OAAO,GAAG,EAAE;IACZ,MAAM,YAAY,CAAC,GAAG,CAAC;AACzB,EAAA;AACF;;AC/EO,MAAM,IAAyC,GAAG;AACvD,EAAA,IAAI,EAAA,sBAAmB;EACvB,OAAO,EAAA;AACT;AAEO,SAAS,KAAK,CACnB,IAAY,EACZ,OAA6B,GAAG,EAAE,EACrB;EACb,OAAOC,OAAS,CAAC,IAAI,EAAE,qBAAqB,CAAC,OAAO,CAAC,CAAC;AACxD;AAEO,SAAS,cAAc,CAC5B,IAAY,EACZ,OAA6B,GAAG,EAAE,EACR;AAC1B,EAAA,MAAM,iBAAiB,GAAG,qBAAqB,CAAC,OAAO,CAAC;AACxD,EAAA,MAAM,GAAG,GAAGA,OAAS,CAAC,IAAI,EAAE,iBAAiB,CAAC;AAC9C,EAAA,MAAM,YAAY,GAAG,YAAY,CAAC,GAAG,EAAE,iBAAiB,CAAC;EAEzD,OAAO;IAAE,GAAG;IAAE,YAAY;IAAE,WAAW,EAAE,cAAc;GAAI;AAC7D;AAEA,cAAe;EACb,IAAI;EACJ,KAAK;AACL,EAAA;AACF,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/configuration.ts","../src/analyze-scope.ts","../src/parse.ts","../src/index.ts"],"sourcesContent":["import type { Options } from \"./types\";\n\nexport default function normalizeESLintConfig(options: any) {\n const {\n babelOptions = {},\n // ESLint sets ecmaVersion: undefined when ecmaVersion is not set in the config.\n ecmaVersion = \"latest\",\n sourceType = \"module\",\n requireConfigFile = true,\n ...otherOptions\n } = options;\n\n return {\n babelOptions: {\n cwd: process.cwd(),\n ...babelOptions,\n browserslistConfigFile: false,\n },\n ecmaVersion: ecmaVersion === \"latest\" ? 1e8 : ecmaVersion,\n sourceType,\n requireConfigFile,\n ...otherOptions,\n } as Options;\n}\n","import { types as t } from \"@babel/core\";\nimport * as eslintScope from \"eslint-scope\";\n\nconst {\n Definition,\n PatternVisitor: OriginalPatternVisitor,\n Referencer: OriginalReferencer,\n Scope,\n ScopeManager,\n} = eslintScope as unknown as import(\"./types\").Scope;\n\nimport { getKeys as fallback } from \"eslint-visitor-keys\";\n\nlet visitorKeysMap: Record<string, string[]>;\nfunction getVisitorValues(nodeType: string) {\n if (visitorKeysMap) return visitorKeysMap[nodeType];\n\n const flowFlippedAliasKeys = new Set(\n t.FLIPPED_ALIAS_KEYS.Flow.concat([\n \"ArrayPattern\",\n \"ClassDeclaration\",\n \"ClassExpression\",\n \"FunctionDeclaration\",\n \"FunctionExpression\",\n \"Identifier\",\n \"ObjectPattern\",\n \"RestElement\",\n ]),\n );\n\n visitorKeysMap = Object.entries(t.VISITOR_KEYS).reduce(\n (acc, [key, value]) => {\n // @ts-expect-error FIXME: value is not assignable to type string[]\n if (!flowFlippedAliasKeys.has(value)) {\n // @ts-expect-error FIXME: value is not assignable to type string[]\n acc[key] = value;\n }\n return acc;\n },\n {},\n );\n\n return visitorKeysMap[nodeType];\n}\n\nconst propertyTypes = {\n // loops\n callProperties: { type: \"loop\", values: [\"value\"] },\n indexers: { type: \"loop\", values: [\"key\", \"value\"] },\n properties: { type: \"loop\", values: [\"argument\", \"value\"] },\n types: { type: \"loop\" },\n params: { type: \"loop\" },\n // single property\n argument: { type: \"single\" },\n elementType: { type: \"single\" },\n qualification: { type: \"single\" },\n rest: { type: \"single\" },\n returnType: { type: \"single\" },\n // others\n typeAnnotation: { type: \"typeAnnotation\" },\n typeParameters: { type: \"typeParameters\" },\n id: { type: \"id\" },\n};\n\nclass PatternVisitor extends OriginalPatternVisitor {\n ArrayPattern(node: any) {\n node.elements.forEach(this.visit, this);\n }\n\n ObjectPattern(node: any) {\n node.properties.forEach(this.visit, this);\n }\n}\n\nclass Referencer extends OriginalReferencer {\n constructor(options: any, scopeManager: any) {\n super(options, scopeManager);\n }\n\n // inherits.\n visitPattern(node: any, options: any, callback: any) {\n if (!node) {\n return;\n }\n\n // Visit type annotations.\n this._checkIdentifierOrVisit(node.typeAnnotation);\n if (node.type === \"AssignmentPattern\") {\n this._checkIdentifierOrVisit(node.left.typeAnnotation);\n }\n\n // Overwrite `super.visitPattern(node, options, callback)` in order to not visit `ArrayPattern#typeAnnotation` and `ObjectPattern#typeAnnotation`.\n if (typeof options === \"function\") {\n callback = options;\n options = { processRightHandNodes: false };\n }\n\n const visitor = new PatternVisitor(this.options, node, callback);\n visitor.visit(node);\n\n // Process the right hand nodes recursively.\n if (options.processRightHandNodes) {\n visitor.rightHandNodes.forEach(this.visit, this);\n }\n }\n\n // inherits.\n visitClass(node: any) {\n // Decorators.\n this._visitArray(node.decorators);\n\n // Flow type parameters.\n const typeParamScope = this._nestTypeParamScope(node);\n\n // Flow super types.\n this._visitTypeAnnotation(node.implements);\n this._visitTypeAnnotation(node.superTypeArguments?.params);\n\n // Basic.\n super.visitClass(node);\n\n // Close the type parameter scope.\n if (typeParamScope) {\n this.close(node);\n }\n }\n\n // inherits.\n visitFunction(node: any) {\n const typeParamScope = this._nestTypeParamScope(node);\n\n // Flow return types.\n this._checkIdentifierOrVisit(node.returnType);\n\n // Basic.\n super.visitFunction(node);\n\n // Close the type parameter scope.\n if (typeParamScope) {\n this.close(node);\n }\n }\n\n // inherits.\n visitProperty(node: any) {\n if (node.value?.type === \"TypeCastExpression\") {\n this._visitTypeAnnotation(node.value);\n }\n this._visitArray(node.decorators);\n super.visitProperty(node);\n }\n\n InterfaceDeclaration(node: any) {\n this._createScopeVariable(node, node.id);\n\n const typeParamScope = this._nestTypeParamScope(node);\n\n // TODO: Handle mixins\n this._visitArray(node.extends);\n this.visit(node.body);\n\n if (typeParamScope) {\n this.close(node);\n }\n }\n\n TypeAlias(node: any) {\n this._createScopeVariable(node, node.id);\n\n const typeParamScope = this._nestTypeParamScope(node);\n\n this.visit(node.right);\n\n if (typeParamScope) {\n this.close(node);\n }\n }\n\n AccessorProperty(node: any) {\n this._visitClassProperty(node);\n }\n\n PropertyDefinition(node: any) {\n this._visitClassProperty(node);\n }\n\n DeclareModule(node: any) {\n this._visitDeclareX(node);\n }\n\n DeclareFunction(node: any) {\n this._visitDeclareX(node);\n }\n\n DeclareVariable(node: any) {\n this._visitDeclareX(node);\n }\n\n DeclareClass(node: any) {\n this._visitDeclareX(node);\n }\n\n _visitClassProperty(node: any) {\n const { computed, key, typeAnnotation, decorators, value } = node;\n\n this._visitArray(decorators);\n if (computed) this.visit(key);\n this._visitTypeAnnotation(typeAnnotation);\n\n if (value) {\n this.scopeManager.__nestClassFieldInitializerScope(value);\n this.visit(value);\n this.close(value);\n }\n }\n\n _visitDeclareX(node: any) {\n if (node.id) {\n this._createScopeVariable(node, node.id);\n }\n\n const typeParamScope = this._nestTypeParamScope(node);\n if (typeParamScope) {\n this.close(node);\n }\n }\n\n _createScopeVariable(node: any, name: any) {\n this.currentScope().variableScope.__define(\n name,\n new Definition(\"Variable\", name, node),\n );\n }\n\n _nestTypeParamScope(node: any) {\n if (!node.typeParameters) {\n return null;\n }\n\n const parentScope = this.scopeManager.__currentScope;\n const scope = new Scope(\n this.scopeManager,\n \"type-parameters\",\n parentScope,\n node,\n false,\n );\n\n this.scopeManager.__nestScope(scope);\n for (let j = 0; j < node.typeParameters.params.length; j++) {\n const name = node.typeParameters.params[j];\n scope.__define(name, new Definition(\"TypeParameter\", name, name));\n if (name.typeAnnotation) {\n this._checkIdentifierOrVisit(name);\n }\n }\n scope.__define = parentScope.__define.bind(parentScope);\n\n return scope;\n }\n\n _visitTypeAnnotation(node: any) {\n if (!node) {\n return;\n }\n if (Array.isArray(node)) {\n node.forEach(this._visitTypeAnnotation, this);\n return;\n }\n\n // get property to check (params, id, etc...)\n const visitorValues = getVisitorValues(node.type);\n if (!visitorValues) {\n return;\n }\n\n // can have multiple properties\n for (let i = 0; i < visitorValues.length; i++) {\n const visitorValue = visitorValues[i];\n const propertyType = (propertyTypes as Record<string, any>)[visitorValue];\n const nodeProperty = node[visitorValue];\n // check if property or type is defined\n if (propertyType == null || nodeProperty == null) {\n continue;\n }\n if (propertyType.type === \"loop\") {\n for (let j = 0; j < nodeProperty.length; j++) {\n if (Array.isArray(propertyType.values)) {\n for (let k = 0; k < propertyType.values.length; k++) {\n const loopPropertyNode = nodeProperty[j][propertyType.values[k]];\n if (loopPropertyNode) {\n this._checkIdentifierOrVisit(loopPropertyNode);\n }\n }\n } else {\n this._checkIdentifierOrVisit(nodeProperty[j]);\n }\n }\n } else if (propertyType.type === \"single\") {\n this._checkIdentifierOrVisit(nodeProperty);\n } else if (propertyType.type === \"typeAnnotation\") {\n this._visitTypeAnnotation(node.typeAnnotation);\n } else if (propertyType.type === \"typeParameters\") {\n for (let l = 0; l < node.typeParameters.params.length; l++) {\n this._checkIdentifierOrVisit(node.typeParameters.params[l]);\n }\n } else if (propertyType.type === \"id\") {\n if (node.id.type === \"Identifier\") {\n this._checkIdentifierOrVisit(node.id);\n } else {\n this._visitTypeAnnotation(node.id);\n }\n }\n }\n }\n\n _checkIdentifierOrVisit(node: any) {\n if (node?.typeAnnotation) {\n this._visitTypeAnnotation(node.typeAnnotation);\n } else if (node?.type === \"Identifier\") {\n this.visit(node);\n } else {\n this._visitTypeAnnotation(node);\n }\n }\n\n _visitArray(nodeList: any[]) {\n if (nodeList) {\n for (const node of nodeList) {\n this.visit(node);\n }\n }\n }\n}\n\nexport default function analyzeScope(ast: any, parserOptions: any) {\n const options = {\n ignoreEval: true,\n optimistic: false,\n directive: false,\n nodejsScope:\n ast.sourceType === \"script\" &&\n parserOptions.ecmaFeatures?.globalReturn === true,\n impliedStrict: false,\n sourceType: ast.sourceType,\n ecmaVersion: parserOptions.ecmaVersion,\n fallback,\n childVisitorKeys: t.VISITOR_KEYS,\n };\n\n // @ts-expect-error upstream typing issue in the `fallback` property: (node: estree.Node) => readonly string[] is not assignable to type (node: estree.Node) => string[]\n const scopeManager = new ScopeManager(options);\n const referencer = new Referencer(options, scopeManager);\n\n referencer.visit(ast);\n\n return scopeManager as any;\n}\n","import { satisfies } from \"verkit\";\nimport type { Options } from \"./types\";\nimport { version } from \"@babel/core\";\nimport { WorkerClient, type Client } from \"./client.ts\";\nimport { convertError, convertFile } from \"./convert/index.ts\";\nimport { createRequire } from \"node:module\";\nimport { getTokLabels, getVisitorKeys } from \"./ast-info.ts\";\nimport { getParserPlugins } from \"./worker/configuration.ts\";\n\nconst require = createRequire(import.meta.url);\n\nconst babelParser = require(\n require.resolve(\"@babel/parser\", {\n paths: [require.resolve(\"@babel/core/package.json\")],\n }),\n);\n\nlet isRunningMinSupportedCoreVersion: boolean | null = null;\n\nlet client: Client;\n\nexport default function parse(code: string, options: Options) {\n // Ensure we're using a version of `@babel/core` that includes `parse()` and `tokTypes`.\n const minSupportedCoreVersion = REQUIRED_VERSION(\"^7.2.0 || ^8.0.0\");\n\n if (typeof isRunningMinSupportedCoreVersion !== \"boolean\") {\n isRunningMinSupportedCoreVersion = satisfies(\n version,\n minSupportedCoreVersion,\n );\n }\n\n if (!isRunningMinSupportedCoreVersion) {\n throw new Error(\n `@babel/eslint-parser@${\n PACKAGE_JSON.version\n } does not support @babel/core@${version}. Please upgrade to @babel/core@${minSupportedCoreVersion}.`,\n );\n }\n\n if (\n options.babelOptions.babelrc === false &&\n options.babelOptions.configFile === false\n ) {\n const parserOpts = {\n sourceType: options.sourceType,\n sourceFilename: options.filePath,\n ...(options.sourceType !== \"commonjs\"\n ? {\n allowReturnOutsideFunction:\n options.ecmaFeatures?.globalReturn ?? false,\n }\n : {}),\n ...options.babelOptions.parserOpts,\n plugins: getParserPlugins(options.babelOptions),\n // skip comment attaching for parsing performance\n attachComment: false,\n ranges: true,\n tokens: true,\n };\n try {\n return convertFile(\n babelParser.parse(code, parserOpts),\n code,\n getTokLabels(),\n getVisitorKeys(),\n );\n } catch (err) {\n throw convertError(err);\n }\n }\n\n client ??= new WorkerClient();\n const { ast, parserOptions } = client.maybeParse(code, options);\n if (ast) return ast;\n\n try {\n return convertFile(\n babelParser.parse(code, parserOptions),\n code,\n getTokLabels(),\n getVisitorKeys(),\n );\n } catch (err) {\n throw convertError(err);\n }\n}\n","import type { ESLint, Linter, AST } from \"eslint\";\nimport normalizeESLintConfig from \"./configuration.ts\";\nimport analyzeScope from \"./analyze-scope.ts\";\nimport baseParse from \"./parse.ts\";\n\nimport { getVisitorKeys } from \"./ast-info.ts\";\n\nexport const meta: ESLint.ObjectMetaProperties[\"meta\"] = {\n name: PACKAGE_JSON.name,\n version: PACKAGE_JSON.version,\n};\n\nexport function parse(\n code: string,\n options: Linter.ParserOptions = {},\n): AST.Program {\n return baseParse(code, normalizeESLintConfig(options));\n}\n\nexport function parseForESLint(\n code: string,\n options: Linter.ParserOptions = {},\n): Linter.ESLintParseResult {\n const normalizedOptions = normalizeESLintConfig(options);\n const ast = baseParse(code, normalizedOptions);\n const scopeManager = analyzeScope(ast, normalizedOptions);\n\n return { ast, scopeManager, visitorKeys: getVisitorKeys() };\n}\n\nexport default {\n meta,\n parse,\n parseForESLint,\n};\n"],"names":["t","fallback","require","parse","baseParse"],"mappings":";;;;;;;AAEe,SAAS,qBAAqB,CAAC,OAAY,EAAE;EAC1D,MAAM;IACJ,YAAY,GAAG,EAAE;AAEjB,IAAA,WAAW,GAAG,QAAQ;AACtB,IAAA,UAAU,GAAG,QAAQ;AACrB,IAAA,iBAAiB,GAAG,IAAI;IACxB,GAAG;AACL,GAAC,GAAG,OAAO;EAEX,OAAO;AACL,IAAA,YAAY,EAAE;AACZ,MAAA,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE;AAClB,MAAA,GAAG,YAAY;AACf,MAAA,sBAAsB,EAAE;KACzB;AACD,IAAA,WAAW,EAAE,WAAW,KAAK,QAAQ,GA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B,IAAI;IACF,OAAO,WAAW,CAChB,WAAW,CAAC,KAAK,CAAC,IAAI,EAAE,aAAa,CAAC,EACtC,IAAI,EACJ,YAAY,EAAE,EACd,cAAc,EAChB,CAAC;EACH,CAAC,CAAC,OAAO,GAAG,EAAE;IACZ,MAAM,YAAY,CAAC,GAAG,CAAC;AACzB,EAAA;AACF;;AC/EO,MAAM,IAAyC,GAAG;AACvD,EAAA,IAAI,EAAA,sBAAmB;EACvB,OAAO,EAAA;AACT;AAEO,SAAS,KAAK,CACnB,IAAY,EACZ,OAA6B,GAAG,EAAE,EACrB;EACb,OAAOC,OAAS,CAAC,IAAI,EAAE,qBAAqB,CAAC,OAAO,CAAC,CAAC;AACxD;AAEO,SAAS,cAAc,CAC5B,IAAY,EACZ,OAA6B,GAAG,EAAE,EACR;AAC1B,EAAA,MAAM,iBAAiB,GAAG,qBAAqB,CAAC,OAAO,CAAC;AACxD,EAAA,MAAM,GAAG,GAAGA,OAAS,CAAC,IAAI,EAAE,iBAAiB,CAAC;AAC9C,EAAA,MAAM,YAAY,GAAG,YAAY,CAAC,GAAG,EAAE,iBAAiB,CAAC;EAEzD,OAAO;IAAE,GAAG;IAAE,YAAY;IAAE,WAAW,EAAE,cAAc;GAAI;AAC7D;AAEA,cAAe;EACb,IAAI;EACJ,KAAK;AACL,EAAA;AACF,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depup/babel__eslint-parser",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.5-depup.0",
|
|
4
4
|
"description": "ESLint parser that allows for linting of experimental syntax transformed by Babel (with updated dependencies)",
|
|
5
5
|
"author": "The Babel Team (https://babel.dev/team)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"eslint-scope": "^9.1.2",
|
|
34
34
|
"eslint-visitor-keys": "^5.0.1",
|
|
35
|
-
"
|
|
35
|
+
"verkit": "^0.4.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@babel/core": "^8.0.
|
|
39
|
-
"@babel/helper-fixtures": "^8.0.
|
|
38
|
+
"@babel/core": "^8.0.5",
|
|
39
|
+
"@babel/helper-fixtures": "^8.0.5",
|
|
40
40
|
"@types/estree": "^1.0.5",
|
|
41
41
|
"dedent": "^1.5.3",
|
|
42
42
|
"eslint": "^10.0.0",
|
|
@@ -60,15 +60,15 @@
|
|
|
60
60
|
"from": "^5.0.0",
|
|
61
61
|
"to": "^5.0.1"
|
|
62
62
|
},
|
|
63
|
-
"
|
|
64
|
-
"from": "^
|
|
65
|
-
"to": "^
|
|
63
|
+
"verkit": {
|
|
64
|
+
"from": "^0.3.2",
|
|
65
|
+
"to": "^0.4.0"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"depsUpdated": 3,
|
|
69
69
|
"originalPackage": "@babel/eslint-parser",
|
|
70
|
-
"originalVersion": "8.0.
|
|
71
|
-
"processedAt": "2026-
|
|
70
|
+
"originalVersion": "8.0.5",
|
|
71
|
+
"processedAt": "2026-09-11T00:32:27.630Z",
|
|
72
72
|
"smokeTest": "passed"
|
|
73
73
|
}
|
|
74
74
|
}
|