Async code and promises
- 'await' in non-async function
Reports a usage of await in a function that was possibly intended to be async but is actually missing the async modifier.
- Missing await for an async function call
Reports an async function call without an expected await prefix inside an async function.
- Redundant 'await' expression
Reports a redundant usage of await, such as await await, or awaiting a non-promise result.
- Result of method call returning a promise is ignored
Reports a function call that returns a Promise that is not used later.
- Top-level 'await' expression
Reports a usage of a top-level await expression.
Last modified: 11 September 2024