You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .eslintrc.js
+17-10Lines changed: 17 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -215,21 +215,11 @@ const config = {
215
215
rules: {
216
216
'no-restricted-syntax': [
217
217
'error',
218
-
{
219
-
selector: '[async=true]',
220
-
message:
221
-
'The polyfill for async/await is very large, which is why we use promise chains',
222
-
},
223
218
{
224
219
selector: 'ForInStatement',
225
220
message:
226
221
'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.',
227
222
},
228
-
{
229
-
selector: 'ForOfStatement',
230
-
message:
231
-
'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.',
0 commit comments