From c9b6f8aeb1bee68bbf852bf12f115c0a2ebd325e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Sun, 13 Jun 2021 22:36:51 +0200 Subject: [PATCH] fix(typescript-estree): use `SyntaxKind.LastPunctuation` as upper bound to determine `Punctuator` token type --- packages/typescript-estree/src/node-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/typescript-estree/src/node-utils.ts b/packages/typescript-estree/src/node-utils.ts index 9afe27669265..ccdfe9d4b215 100644 --- a/packages/typescript-estree/src/node-utils.ts +++ b/packages/typescript-estree/src/node-utils.ts @@ -518,7 +518,7 @@ export function getTokenType( if ( token.kind >= SyntaxKind.FirstPunctuation && - token.kind <= SyntaxKind.LastBinaryOperator + token.kind <= SyntaxKind.LastPunctuation ) { return AST_TOKEN_TYPES.Punctuator; }