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.
letfoo=true;// other code...if(foo===true){//do something...}
or maybe
if(foo!==false){//do something...}
(I have seen both of these in real code!)
When foo is a boolean, this is unnecessary and could result in a linting violation. However if foo can be something else like foo: true | number | null then these explicit checks should be allowed.
Novice programmers might have something like this
or maybe
(I have seen both of these in real code!)
When
foo
is a boolean, this is unnecessary and could result in a linting violation. However iffoo
can be something else likefoo: true | number | null
then these explicit checks should be allowed.perhaps this could be added as an option to the existing
strict-boolean-expressions
rule?The text was updated successfully, but these errors were encountered: