Skip to content

Commit

Permalink
Suppress lint issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRosenwasser committed Jan 15, 2020
1 parent cd8c86d commit 609a605
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/compiler/checker.ts
Expand Up @@ -30102,7 +30102,9 @@ namespace ts {
if (node.kind === SyntaxKind.VariableDeclaration || node.kind === SyntaxKind.BindingElement) {
checkVarDeclaredNamesNotShadowed(node);
}
// eslint-disable-next-line
checkCollisionWithRequireExportsInGeneratedCode(node, <Identifier>node.name);
// eslint-disable-next-line
checkCollisionWithGlobalPromiseInGeneratedCode(node, <Identifier>node.name);
}
}
Expand Down Expand Up @@ -35268,9 +35270,11 @@ namespace ts {
node.kind === SyntaxKind.FunctionExpression ||
node.kind === SyntaxKind.MethodDeclaration);
if (node.flags & NodeFlags.Ambient) {
// eslint-disable-next-line
return grammarErrorOnNode(node.asteriskToken!, Diagnostics.Generators_are_not_allowed_in_an_ambient_context);
}
if (!node.body) {
// eslint-disable-next-line
return grammarErrorOnNode(node.asteriskToken!, Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator);
}
}
Expand Down

0 comments on commit 609a605

Please sign in to comment.