Skip to content

Commit

Permalink
fix(typescript-estree): ensure backwards compat with pre-5.3 import a…
Browse files Browse the repository at this point in the history
…ttributes (#7967)
  • Loading branch information
bradzacher authored Nov 21, 2023
1 parent 9139b9d commit 810fc8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/typescript-estree/src/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3180,6 +3180,8 @@ export class Converter {
});
}

// eslint-disable-next-line deprecation/deprecation -- required for backwards-compatibility
case SyntaxKind.AssertEntry:
case SyntaxKind.ImportAttribute: {
return this.createNode<TSESTree.ImportAttribute>(node, {
type: AST_NODE_TYPES.ImportAttribute,
Expand Down

0 comments on commit 810fc8c

Please sign in to comment.