no-fallthrough failing on continue statement #1220
Labels
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
rule
Relates to ESLint's core rules
Take a look at the following code
When I run eslint with the
no-fallthrough
rule turned on, I get the following errorTo fix the issue, I added a
break;
statement as recommendedThis time, I get another error:
test.js 6:8 error Found unexpected statement after a continue no-unreachable
Although I can work around this by using a
//falls through
comment instead of thebreak;
, the code is technically never falling through and the comment will be misleading in that case.The text was updated successfully, but these errors were encountered: