// identical to airbnb rule, except for allowing for..of, because we want to use it
// identical to airbnb rule, except for allowing for..of, because we want to use it
// "no-restricted-syntax": [
"no-restricted-syntax": [
// "error",
"error",
// {
{
// "selector": "ForInStatement",
"selector": "ForInStatement",
// "message": "for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array."
"message": "for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array."
// },
},
// {
{
// "selector": "LabeledStatement",
"selector": "LabeledStatement",
// "message": "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand."
"message": "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand."
// },
},
// {
{
// "selector": "WithStatement",
"selector": "WithStatement",
// "message": "`with` is disallowed in strict mode because it makes code impossible to predict and optimize."
"message": "`with` is disallowed in strict mode because it makes code impossible to predict and optimize."