I'm migrating several projects from TSLint to ESLint and I've found that ESLint has no rule to prevent promises from being handled correctly, or at least I haven't found it in the docs.
The no-floating-promises rule in TSLint forced the programmer to, either async/await
, or then/catch
all promises. Is there a way to get that same functionality in ESLint?
I am aware of this answer, but I think OP is referring to a rule with a different behavior: catch()
all promises. Moreover, the answer to that question is the npm package eslint-plugin-package, which hasn't had a release in two years.