Bug: [prefer-nullish-coalescing] faulty detection of conditional tests with ignoreConditionalTests: true
#10153
Closed
4 tasks done
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
locked due to age
Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
link
Repro Code
ESLint Config
tsconfig
Expected Result
I expect that
if (f(a || b)) {}
should report, sincea || b
is being used as a function argument, not the test of anif
statement.Actual Result
it doesn't report
Additional Info
Just popping this up as a standalone issue for visibility/tracking. It will likely be addressed in #9924 (comment)
cc @developer-bandi
The text was updated successfully, but these errors were encountered: