Allow use of for..of statements

This commit is contained in:
Valtteri Kantanen
2024-04-24 15:11:44 +03:00
parent 1dcf2fe389
commit 85decaa997
7 changed files with 12 additions and 11 deletions
+9 -1
View File
@@ -29,7 +29,15 @@
"no-param-reassign": "off",
"no-plusplus": "off",
"no-promise-executor-return": "off",
"no-restricted-syntax": "off",
"no-restricted-syntax": [
"error",
{
"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."
},
"LabeledStatement",
"WithStatement"
],
"no-return-await": "off",
"no-shadow": "off",
"prettier/prettier": "error",