You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
Is your feature request related to a problem? Please describe.
There are several issues related to the difference between no-floating-promises and strict-boolean-expressions. Examples: #3804#3983#4115
no-floating-promises intentionally does not check whether Promises are the conditionals in boolean expressions:
if (thingThatCreatesPromise()) { /* ... */ }
That is the realm of strict-boolean-expressions... which unfortunately is a rather strict rule, and many cannot turn it on.
Describe the solution you'd like
Until something more concrete is done to address the issue, we should note in the docs for no-floating-promises what it will or will not catch, and now strict-boolean-expressions solves the rest.
TSLint is no longer accepting most feature requests per #4534. See typescript-eslint.io for the new, shiny way to lint your TypeScript code with ESLint. ✨
Feature request
Is your feature request related to a problem? Please describe.
There are several issues related to the difference between
no-floating-promises
andstrict-boolean-expressions
. Examples: #3804 #3983 #4115no-floating-promises
intentionally does not check whether Promises are the conditionals in boolean expressions:That is the realm of
strict-boolean-expressions
... which unfortunately is a rather strict rule, and many cannot turn it on.Describe the solution you'd like
Until something more concrete is done to address the issue, we should note in the docs for
no-floating-promises
what it will or will not catch, and nowstrict-boolean-expressions
solves the rest.Describe alternatives you've considered
#3983 discusses the idea of either:
strict-boolean-expressions
to be flexible enough for use on this specific caseOnce either is done, we should also note it in the docs for
no-floating-promises
.The text was updated successfully, but these errors were encountered: