[strict-boolean-expressions] False positive with union types having only one falsey value #3115
Closed
3 tasks done
Labels
bug
Something isn't working
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
tsconfig: the default as output by
tsc --init
Expected Result
I expected there to be no error, as there is exactly one possible falsey value, no ambiguity.
Actual Result
Additional Info
This is similar to the likely non-bug #2894, but in that example there are multiple falsey values.
Versions
@typescript-eslint/eslint-plugin
4.15.2
@typescript-eslint/parser
4.15.2
TypeScript
4.1.5
ESLint
7.20.0
node
10.24.0
The text was updated successfully, but these errors were encountered: