This is not related to for , but with items inside the for construct.
If you go like
for (items in properties) {
and items were not previously defined, then items will be a global variable. Since JSHint is complaining, you probably won't declare items in the scope of the for constructor, even if you let it look like your code example.
If this is really defined, I would suggest an error message file with JSHint :-)
source share