Re:ESLint 7.0
by ausjke on Monday May 11, 2020 @01:40PM
(#23144762)
hundreds of rules to read, is this on its recommended list if it's so critical? is its name 'no-floating-promises'?
[ Parent
| on HN ]
Re:ESLint 7.0
by williamdclt on Monday May 11, 2020 @01:50PM
(#23144897)
> is its name 'no-floating-promises'
Yes, and I subscribe to the parent's sentiment: this rule is essential
Re:ESLint 7.0
by brycelarkin on Monday May 11, 2020 @04:27PM
(#23146617)
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...