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:
parent
c2dfae4999
commit
8442d0103b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue