Skip to content

Commit b964206

Browse files
committed
Disallow loops with a body that allows only one iteration (no-unreachable-loop)
Fixes standard/standard#1556
1 parent 222e7ee commit b964206

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"no-loss-of-precision": "error",
3030
"default-case-last": "error",
3131
"no-useless-backreference": "error",
32+
"no-unreachable-loop": "error",
3233

3334
"accessor-pairs": "error",
3435
"array-bracket-spacing": ["error", "never"],

0 commit comments

Comments
 (0)