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

Commit

Permalink
no-unsafe-any: Fix bug for continue with label (#2830)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-hanson authored and adidahiya committed May 30, 2017
1 parent ad4aedb commit f9113e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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

0 comments on commit f9113e9

Please sign in to comment.