π 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.
// β
await await promise;
// β
await promise;// β
await [promise1, promise2];
// β
await Promise.allSettled([promise1, promise2]);