From c390c671f47f8b053c9b422cf20bdae60d585bdc Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Sun, 17 Apr 2022 14:30:00 +0900 Subject: [PATCH] fix(eslint-plugin): avoid type errors --- .../eslint-plugin/src/rules/no-unnecessary-type-arguments.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/eslint-plugin/src/rules/no-unnecessary-type-arguments.ts b/packages/eslint-plugin/src/rules/no-unnecessary-type-arguments.ts index 294adf554ad..e248181a6a5 100644 --- a/packages/eslint-plugin/src/rules/no-unnecessary-type-arguments.ts +++ b/packages/eslint-plugin/src/rules/no-unnecessary-type-arguments.ts @@ -12,7 +12,8 @@ type ParameterCapableTSNode = | ts.TypeReferenceNode | ts.ExpressionWithTypeArguments | ts.JsxOpeningElement - | ts.JsxSelfClosingElement; + | ts.JsxSelfClosingElement + | ts.TypeQueryNode; type MessageIds = 'unnecessaryTypeParameter';