Skip to content

Commit 810fc8c

Browse files
authored
fix(typescript-estree): ensure backwards compat with pre-5.3 import attributes (#7967)
1 parent 9139b9d commit 810fc8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: packages/typescript-estree/src/convert.ts

+2
Original file line numberDiff line numberDiff line change
@@ -3180,6 +3180,8 @@ export class Converter {
31803180
});
31813181
}
31823182

3183+
// eslint-disable-next-line deprecation/deprecation -- required for backwards-compatibility
3184+
case SyntaxKind.AssertEntry:
31833185
case SyntaxKind.ImportAttribute: {
31843186
return this.createNode<TSESTree.ImportAttribute>(node, {
31853187
type: AST_NODE_TYPES.ImportAttribute,

0 commit comments

Comments
 (0)