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 May 20, 2020. It is now read-only.
In our current code base we can not use v0.0.4, because the rule strict-boolean-expressions (wich is useful to prevent issues when using strings and numbers as part of boolean expressions,) doesn't know about short-circuit syntax that is heavily used in JSX.
It reports that the last part of the expression is always true.
We either want to fix the tslint rule or create a more lightweight one that just reports usages of number and string values in such expressions.
The text was updated successfully, but these errors were encountered:
[new-rule-option]strict-boolean-expressions accepts ignore-rhs option to disable checking the right-hand side of the && and || operators as strictly boolean. (#4159)
The issue can not be closed, the rule still reports all kinds of cases that we believe are not a problem due too the fact that objects and functions are truthy compared to null or undefined, this doesn't seem to be configurable right now.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In our current code base we can not use v0.0.4, because the rule
strict-boolean-expressions
(wich is useful to prevent issues when using strings and numbers as part of boolean expressions,) doesn't know about short-circuit syntax that is heavily used in JSX.It reports that the last part of the expression is always true.
We either want to fix the tslint rule or create a more lightweight one that just reports usages of number and string values in such expressions.
The text was updated successfully, but these errors were encountered: