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
This commit is contained in:
Michael Krotscheck 2016-03-16 08:13:03 -07:00
parent c2dfae4999
commit 8442d0103b
No known key found for this signature in database
GPG Key ID: 20E618D878DE38AB
1 changed files with 1 additions and 1 deletions

View File

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