Enhancement: [@typescript-eslint/no-unnecessary-condition] Detect unnecessary comparison to falsy values #5021
Closed
4 tasks done
Labels
enhancement: plugin rule option
New rule option for an existing eslint-plugin rule
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
wontfix
This will not be worked on
Before You File a Proposal Please Confirm You Have Done The Following...
My proposal is suitable for this project
Link to the rule's documentation
https://typescript-eslint.io/rules/no-unnecessary-condition/
Description
I would like unnecessary falsy values checks when the variable is already checked for truthiness in the same condition chain to be raised. I often see newer devs not realize that their condition is redundant.
Fail
Pass
Additional Info
No response
The text was updated successfully, but these errors were encountered: