no-unnecessary-await
March 27, 2026 ยท View on GitHub
๐ Disallow awaiting non-promise values.
๐ผ This rule is enabled in the following configs: โ
recommended, โ๏ธ unopinionated.
๐ง This rule is automatically fixable by the --fix CLI option.
The await operator should only be used on Promise values.
Examples
// โ
await await promise;
// โ
await promise;
// โ
await [promise1, promise2];
// โ
await Promise.allSettled([promise1, promise2]);