await-thenable
Configuration
rslint.config.ts
Rule Details
Disallow awaiting a value that is not a Thenable (Promise-like). Using await on a non-Promise value is almost always a programmer error and has no effect at runtime, since await on a non-Thenable value simply returns it immediately.
This rule also checks for await...of loops for non-async iterables and await using declarations for non-async disposable values.
Examples of incorrect code for this rule:
Examples of correct code for this rule: