Closed mandyvenables closed 4 years ago
I think this is fine since "return await" usually isn't desired. @aljones15 I'm not sure what your stack trace example is doing. Note that modern v8 (and maybe other runtimes) are pretty good at optimizing variations of these patterns and providing useful stack traces. You don't usually need to jump through hoops to do so.
This seems like an improvement so thank you:
https://eslint.org/docs/rules/no-return-await
we also might want to spread the knowledge that this leads to better stack traces: