From 8f79cd42f45f5c852747093f4e2a38ed8dc72337 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 8 May 2020 00:12:41 +0000 Subject: [PATCH] ESLint suppressions because ain't nobody got time for this. --- src/compiler/checker.ts | 3 ++- src/compiler/utilities.ts | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index df8f4a0d0e774..7f418144c3511 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -27699,7 +27699,8 @@ namespace ts { error(expr, Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference); return booleanType; } - if (expr.kind === SyntaxKind.PropertyAccessExpression && isPrivateIdentifier(expr.name)) { + // eslint-disable-next-line + if (expr.kind === SyntaxKind.PropertyAccessExpression && isPrivateIdentifier((expr as PropertyAccessExpression).name)) { error(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier); } const links = getNodeLinks(expr); diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 56c9a8a185d5e..1e019ec69ad9a 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -4029,11 +4029,13 @@ namespace ts { } if (member.kind === SyntaxKind.GetAccessor && !getAccessor) { - getAccessor = member; + // eslint-disable-next-line + getAccessor = member; } if (member.kind === SyntaxKind.SetAccessor && !setAccessor) { - setAccessor = member; + // eslint-disable-next-line + setAccessor = member; } } }