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.
package/lib/rules/curly.js
CHANGED
@@ -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: [ "(", "{" ] });
|