eslint 1.10.2 → 1.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -251,9 +251,12 @@ module.exports = function(context) {
251
251
 
252
252
  "ForInStatement": function(node) {
253
253
  prepareCheck(node, node.body, "for-in").check();
254
+ },
255
+
256
+ "ForOfStatement": function(node) {
257
+ prepareCheck(node, node.body, "for-of").check();
254
258
  }
255
259
  };
256
-
257
260
  };
258
261
 
259
262
  module.exports.schema = {
@@ -188,7 +188,7 @@ module.exports = function(context) {
188
188
  return;
189
189
  }
190
190
 
191
- checkTokens(node, left, right, { allowedPrecedingChars: [ "(", "{" ] });
191
+ checkTokens(node, left, right, { allowedPrecedingChars: [ "(", "{", "[" ] });
192
192
  },
193
193
  "YieldExpression": function(node) {
194
194
  check(node, { allowedPrecedingChars: [ "(", "{" ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint",
3
- "version": "1.10.2",
3
+ "version": "1.10.3",
4
4
  "author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
5
5
  "description": "An AST-based pattern checker for JavaScript.",
6
6
  "bin": {