Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

no-unsafe-any: Fix bug for continue with label #2830

Merged
merged 1 commit into from May 30, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions src/rules/noUnsafeAnyRule.ts
Expand Up @@ -71,6 +71,7 @@ function walk(ctx: Lint.WalkContext<void>, checker: ts.TypeChecker): void {
return cb((node as ts.LabeledStatement).statement);

case ts.SyntaxKind.BreakStatement: // Ignore label
case ts.SyntaxKind.ContinueStatement:
// Ignore types
case ts.SyntaxKind.InterfaceDeclaration:
case ts.SyntaxKind.TypeAliasDeclaration:
Expand Down
1 change: 1 addition & 0 deletions test/rules/no-unsafe-any/test.ts.lint
Expand Up @@ -20,6 +20,7 @@ function returnsA(): 0 | "a" | null | undefined;

label: for (const x of []) {
break label;
continue label;
}

importAlias.property;
Expand Down