Closed
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Playground Link
Repro Code
const bar = (foo: "a" | "" | undefined) => {
if (!foo) {
console.log(foo)
}
}
ESLint Config
{
"rules": {
"@typescript-eslint/strict-boolean-expressions": [
"error"
]
}
}
tsconfig
Expected Result
i expect line 2 to error with
Unexpected nullable string value in conditional. Please handle the nullish/empty cases explicitly.
Actual Result
no error
Additional Info
No response