ESLint suppressions because ain't nobody got time for this.

This commit is contained in:
Daniel 2020-05-08 00:12:41 +00:00
parent 946f4be633
commit 8f79cd42f4
2 changed files with 6 additions and 3 deletions

View File

@ -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);

View File

@ -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;
}
}
}