Skip to content

Commit

Permalink
ESLint suppressions because ain't nobody got time for this.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRosenwasser committed May 8, 2020
1 parent 946f4be commit 8f79cd4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 4 additions & 2 deletions src/compiler/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4029,11 +4029,13 @@ namespace ts {
}

if (member.kind === SyntaxKind.GetAccessor && !getAccessor) {
getAccessor = member;
// eslint-disable-next-line
getAccessor = <GetAccessorDeclaration>member;
}

if (member.kind === SyntaxKind.SetAccessor && !setAccessor) {
setAccessor = member;
// eslint-disable-next-line
setAccessor = <SetAccessorDeclaration>member;
}
}
}
Expand Down

0 comments on commit 8f79cd4

Please sign in to comment.