require-await
Configuration
rslint.config.ts
Rule Details
Disallow async functions which have no await expression. Asynchronous functions that do not use await might not need to be asynchronous, and may be the unintentional result of refactoring. They also cause a performance penalty by wrapping the function return value in an extra Promise.
This rule extends the base ESLint require-await rule with TypeScript-specific support: it considers returning a thenable value from an async function as equivalent to using await, and also handles for-await-of loops, yield* on async iterables, and using/await using declarations.
Examples of incorrect code for this rule:
Examples of correct code for this rule: