📎 Implement useImplicitBoolean
#5095
Labels
S-Needs discussion
Status: needs a discussion to understand criteria
useImplicitBoolean
#5095
Description
Add
useImplicitBoolean
, a rule that enforces using implicit booleans in JSX over explicit boolean props.Valid
Invalid
Requested here: #3 (comment)
Source: https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-boolean-value.md
Note that we already have
noImplicitBoolean
, the opposite of this rule. Would it be worth it to combine them into one rule? The best time to do so would be before 2.0.The text was updated successfully, but these errors were encountered: