You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Node, it's possible to call an async function, or one that just returns a promise, and ignore the result. This leaves a promise that has no catch handler, which, in modern runtimes, can result in crashing the process.
The proposal here is two-fold:
Turn this on and see if anything breaks in a few places
The purpose of this proposal is to prevent accidentally "dangling" promises from called functions.
https://typescript-eslint.io/rules/no-floating-promises
In Node, it's possible to call an async function, or one that just returns a promise, and ignore the result. This leaves a promise that has no catch handler, which, in modern runtimes, can result in crashing the process.
The proposal here is two-fold:
We might also consider this related rule:
https://typescript-eslint.io/rules/no-misused-promises
The text was updated successfully, but these errors were encountered: