Skip to content

Commit

Permalink
Merge pull request #15 from tyearke/meta/js-style-for-in
Browse files Browse the repository at this point in the history
Style: Removed ESLint rule prohibiting for...in statements
  • Loading branch information
tyearke authored Apr 11, 2017
2 parents 23b3a5e + f5d0460 commit 7c0fcdf
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,21 @@
],
"no-continue": "off",
"no-plusplus": "off",
"no-prototype-builtins": "off"
"no-prototype-builtins": "off",
"no-restricted-syntax": [
"error",
{
"selector": "ForOfStatement",
"message": "iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations."
},
{
"selector": "LabeledStatement",
"message": "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand."
},
{
"selector": "WithStatement",
"message": "`with` is disallowed in strict mode because it makes code impossible to predict and optimize."
}
]
}
}

0 comments on commit 7c0fcdf

Please sign in to comment.