You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As talked with @lfac-pt, at Pulse the common usage is <Comp prop={true} />.
The text was updated successfully, but these errors were encountered:
marlomgirardi
changed the title
Enforce explicit boolean property with react/jsx-boolean-value
Enforce (or not) boolean property with react/jsx-boolean-valueNov 4, 2019
IMO, I think the true prop should be enforced - since it is easier to understand.
And I also think the same prop with a false value should be omitted if there's no need to pass that (meaning it's the default value).
On the other hand, having only the prop name without true/false values can come as simpler to read.
WDYT about this rule?
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-boolean-value.md
As talked with @lfac-pt, at Pulse the common usage is
<Comp prop={true} />
.The text was updated successfully, but these errors were encountered: