-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Labels
outdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue
Milestone
Description
See https://typescript-eslint.io/blog/announcing-typescript-eslint-v8-beta/#ast-breaking-changes
We should probably to this for Babel 8, since we are otherwise aligned as far as I know. @fisker are there any other differences between Babel (in estree mode) and typescript-eslint that you know of?
Ref #10746 (comment)
Edits by @JLHwung:
- Convert
MethodDefinition { abstract: true, ... }
toTSAbstractMethodDefinition { ... }
,PropertyDefinition { abstract: true, ... }
toTSAbstractPropertyDefinition { ... }
, thevalue
of anTSAbstractMethodDefinition
must be aTSEmptyBodyFunctionExpression
([Babel 8] Create TSAbstract{Method,Property}Definition #17014) - Rename
typeParameters
totypeArguments
forTSClassImplements
andTSInterfaceHeritage
([Babel 8]: renametypeParameters
totypeArguments
forTSClassImplements
andTSInterfaceHeritage
#17017) - Rename
typeParameters
totypeArguments
forCallExpression
(RenametypeParameters
totypeArguments
for call expression alike #17020) - Rename
typeParameters
totypeArguments
forTSImportType
([Babel 8] RenametypeParameters
totypeArguments
inTSImportType
#17042) - Rename
typeParameters
totypeArguments
forTSTypeQuery
(RenametypeParameters
totypeArguments
forTSTypeQuery
#17012) - Remove the
isExport
key inTSImportEqualsDeclaration
, replaceTSImportEqualsDeclaration { isExport: true, ... }
with theExportNamedDeclaration { declaration: TSImportEqualsDeclaration {...} }
([Babel 8] Parseexport import =
as an ExportNamedDeclaration #17073) - The
argument
of theTSImportType
should be wrapped within theTSLiteralType
([Babel 8]: wrap the TSImportType's argument within a TSLiteralType #17046) - Convert
TSLiteralType { literal: TemplateLiteral { ... } }
toTSTemplateLiteralType { ... }
([Babel 8] Create TSTemplateLiteralType #17066) - Convert
TSTypeQuery { exprName: Identifier { name: "this" }
toTSTypeQuery { exprName: ThisExpression }
([Babel 8] Create ThisExpression fortypeof this
#17059) - The
typeParameters
of an object method should be moved into its function expression value node ([estree] Unify method type parameters handling #17045) - The
expression
of a TSHeritageBase should be an expression ([Babel 8] Parse TSHeritageBase.expression as an expression #17139)
liuxingbaoyu
Metadata
Metadata
Assignees
Labels
outdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue