menu
no-needless-continue
Disallow continue where control already proceeds to the same iteration
A continue at the end of its target loop path repeats the control transfer already performed by ordinary completion.
Instead, you SHOULD remove the redundant statement and let the iteration finish normally.
Reported
1function visit(values: int32[]): void {2 for (const value of values) {3 value;4 continue;5 }6}Accepted
1function visit(values: int32[]): void {2 for (const value of values) {3 value;4 }5}