Browse Source

Enable no-unmodified-loop-condition

This rule ensures that parameters used to declare a loop, are modified
within the loop. If they are not, it is likely that this is an error.

Example:

while(foo) {
  doSomething(foo);
}

http://eslint.org/docs/rules/no-unmodified-loop-condition

Change-Id: I8f5a0b2b1f48a9f93e0946c76c497e86a199f01e
Michael Krotscheck 3 years ago
parent
commit
8442d0103b
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      .eslintrc

+ 1
- 1
.eslintrc View File

@@ -397,7 +397,7 @@ rules:
397 397
 
398 398
   # disallow unmodified conditions of loops
399 399
   # http://eslint.org/docs/rules/no-unmodified-loop-condition
400
-  no-unmodified-loop-condition: 0
400
+  no-unmodified-loop-condition: 2
401 401
 
402 402
   # Disallow usage of expressions in statement position
403 403
   # http://eslint.org/docs/rules/no-unused-expressions

Loading…
Cancel
Save