During my migration process from TSLint to ESLint, I've noticed that there doesn't seem to be a specific rule in ESLint to ensure promises are being handled correctly. In TSLint, the no-floating-promises rule required either using async/await
or then/catch
for all promises. Is there a similar functionality available in ESLint?
I came across this answer, but it seems to address a different issue – specifically about using catch()
with all promises. Additionally, the suggested solution utilizes the npm package eslint-plugin-package, which hasn't been updated in two years.