Docs: wrong example in no-unnecessary-boolean-literal-compare
#8980
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
documentation
Documentation ("docs") that needs adding/updating
Before You File a Documentation Request Please Confirm You Have Done The Following...
Suggested Changes
According to issue #6897, the Comparison column in the no-unnecessary-boolean-literal-compare docs was missing an
!( ... )
negation around the cases that were comparing nullable boolean variables to false, which was fixed by PR #6968.One thing that went unnoticed, though, was that the example for the
allowComparingNullableBooleansToFalse
option is also missing the!( ... )
negation, which makes it incorrect.Affected URL(s)
https://typescript-eslint.io/rules/no-unnecessary-boolean-literal-compare#allowcomparingnullablebooleanstofalse
The text was updated successfully, but these errors were encountered: