Skip to content

Commit 609a605

Browse files
Suppress lint issues.
1 parent cd8c86d commit 609a605

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/compiler/checker.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30102,7 +30102,9 @@ namespace ts {
3010230102
if (node.kind === SyntaxKind.VariableDeclaration || node.kind === SyntaxKind.BindingElement) {
3010330103
checkVarDeclaredNamesNotShadowed(node);
3010430104
}
30105+
// eslint-disable-next-line
3010530106
checkCollisionWithRequireExportsInGeneratedCode(node, <Identifier>node.name);
30107+
// eslint-disable-next-line
3010630108
checkCollisionWithGlobalPromiseInGeneratedCode(node, <Identifier>node.name);
3010730109
}
3010830110
}
@@ -35268,9 +35270,11 @@ namespace ts {
3526835270
node.kind === SyntaxKind.FunctionExpression ||
3526935271
node.kind === SyntaxKind.MethodDeclaration);
3527035272
if (node.flags & NodeFlags.Ambient) {
35273+
// eslint-disable-next-line
3527135274
return grammarErrorOnNode(node.asteriskToken!, Diagnostics.Generators_are_not_allowed_in_an_ambient_context);
3527235275
}
3527335276
if (!node.body) {
35277+
// eslint-disable-next-line
3527435278
return grammarErrorOnNode(node.asteriskToken!, Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator);
3527535279
}
3527635280
}

0 commit comments

Comments
 (0)