Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 485 Bytes

no-async-iteration.md

File metadata and controls

20 lines (14 loc) · 485 Bytes

no-async-iteration

This prevents the use of Async Iteration - through for await (... of ...) statements:

for await (const line of readLines(path)) {
  console.log(line)
}

These will not be allowed because they are not supported in the following browsers:

  • Edge < 79
  • Safari < 12
  • Firefox < 57
  • Chrome < 63

What is the Fix?

This can be safely disabled if you intend to compile code with the @babel/plugin-proposal-async-generator-functions Babel plugin