4 ms·
hundreds of rules to read, is this on its recommended list if it's so critical? is its name 'no-floating-promises'?
by ausjke 6y ago
hundreds of rules to read, is this on its recommended list if it's so critical? is its name 'no-floating-promises'?
- williamdclt 6y ago> is its name 'no-floating-promises' Yes, and I subscribe to the parent's sentiment: this rule is essential
- brycelarkin 6y agohttps://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-floating-promises.md https://github.com/typescript-eslint/typescript-eslint/blob/...
- aaomidi 6y agoIt'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!
- johnsoft 6y ago>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/issues/1423 https://github.com/typescript-eslint/typescript-eslint/issue...
- aaomidi 6y agoI 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.