This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
"no-floating-promises" does not report failure with .catch
/ .then(..., catch)
#3936
Labels
Bug Report
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
No error is reported.
Expected behavior
Would expect to be able to catch a floating promise via this rule, even if it requires a specific configuration parameter. This is because it's possible to throw errors in catch blocks, and not returning a floating promise in a chain can result in other bugs.
The text was updated successfully, but these errors were encountered: