-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
breaking changeThis change will require a new major version to be releasedThis change will require a new major version to be releasedenhancementNew feature or requestNew feature or requestpackage: typescript-estreeIssues related to @typescript-eslint/typescript-estreeIssues related to @typescript-eslint/typescript-estree
Milestone
Description
For this code example:
const x = import('module');
We currently emit the following AST (excluding the variable decl):
{
"type": "CallExpression",
"callee": {
"type": "Import",
},
"arguments": [
{
"type": "Literal",
"raw": "'a'",
"value": "a",
}
],
"optional": false,
}
When we should be emitting this (as per the ESTree spec)
{
"type": "ImportExpression",
"source": {
"type": "Literal",
"value": "a",
"raw": "'a'"
}
}
Metadata
Metadata
Assignees
Labels
breaking changeThis change will require a new major version to be releasedThis change will require a new major version to be releasedenhancementNew feature or requestNew feature or requestpackage: typescript-estreeIssues related to @typescript-eslint/typescript-estreeIssues related to @typescript-eslint/typescript-estree