-
-
Notifications
You must be signed in to change notification settings - Fork 790
Labels
S-Needs discussionStatus: needs a discussion to understand criteriaStatus: needs a discussion to understand criteria
Description
Description
Add useImplicitBoolean, a rule that enforces using implicit booleans in JSX over explicit boolean props.
Valid
<Foo bar />
<Foo bar={false} />Invalid
<Foo bar={true} />
Requested here: #3 (comment)
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.
chancesmith and larsmunkholmdios-david
Metadata
Metadata
Assignees
Labels
S-Needs discussionStatus: needs a discussion to understand criteriaStatus: needs a discussion to understand criteria