no-floating-promises
Configuration
rslint.config.ts
Rule Details
Requires Promise-like statements to be handled appropriately. A "floating" promise is one that is created without any code to handle potential errors. Floating promises can cause unexpected behavior because errors in them will be silently ignored. This rule reports on promises in expression statements that are not awaited, not chained with .catch() or .then() with a rejection handler, and not explicitly ignored with the void operator.
Examples of incorrect code for this rule:
Examples of correct code for this rule: