Rule: no-return-await
Disallows unnecessary return await
.
Rationale
An async function always wraps the return value in a Promise.
Using return await
just adds extra time before the overreaching promise is resolved without changing the semantics.
Notes:
Has Fixer
Config
Not configurable.
Config examples
"no-return-await": true
Schema
null