-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Open
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 requesttriageWaiting for team members to take a lookWaiting for team members to take a look
Description
Before You File a Proposal Please Confirm You Have Done The Following...
- I have searched for related issues and found none that match my proposal.
- I have searched the current rule list and found no rules that match my proposal.
- I have read the FAQ and my problem is not listed.
Relevant Package
typescript-estree
My proposal is suitable for this project
- I believe my proposal would be useful to the broader TypeScript community (meaning it is not a niche proposal).
Description
Currently, the following code has a totally different AST
type A = a .b<x>
// ^^^^^^^^^^^^^^^^ TSTypeReference
// ^^^^^^^^^^^^^ TSTypeReference.typeName (`TSQualifiedName` with `Identifier` as `TSQualifiedName.left`)
// ^ TSTypeReference.typeArguments
type A = import('a').b<x>
// ^^^^^^^^^^^^^^^^ TSImportType
// ^^^ TSImportType.source
// ^^ TSImportType.qualifier
// ^ TSImportType.typeArgumentsDo you think it make sense to change the second one to
type A = import('a').b<x>
// ^^^^^^^^^^^^^^^^ TSTypeReference
// ^^^^^^^^^^^^^ TSTypeReference.typeName (`TSQualifiedName` with `TSImportType` as `TSQualifiedName.left`)
// ^ TSTypeReference.typeArguments?
Additional Info
No response
9romise and JoshuaKGoldberg
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 requesttriageWaiting for team members to take a lookWaiting for team members to take a look