Hacker News new | ask | show | jobs
by ausjke 2233 days ago
hundreds of rules to read, is this on its recommended list if it's so critical? is its name 'no-floating-promises'?
4 comments

> is its name 'no-floating-promises'

Yes, and I subscribe to the parent's sentiment: this rule is essential

It's unfortunately not on the recommended list. For very few circumstances the rule doesn't make sense, but most of the time that shows bad programming design.

That's the name!

I also highly recommend just reading all the rules if you're a JS/TS developer. It really helps you see what stuff could be very useful.
>is this on its recommended list

Not now, but it's planned to be starting with the next major version. They are holding off until then since changing the default rules is considered a breaking change.

https://github.com/typescript-eslint/typescript-eslint/issue...