eslint-plugin-no-loops icon indicating copy to clipboard operation
eslint-plugin-no-loops copied to clipboard

Allow loops containing await

Open joshski opened this issue 7 years ago • 0 comments

Hi!

I found this plugin handy... but I don't mind loops with awaits in them, e.g.

for (const foo of foos) {
  await foo()
}

...because this is a neat way of expressing serial execution of a list of async things (compared to say, using reduce).

But I'm not sure if this would warrant spawning a new plugin (e.g. no-sync-loops), or an option for this one. What do you think?

joshski avatar Oct 22 '18 18:10 joshski