Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule proposal: prefer prop over prop={true} #11

Closed
lencioni opened this issue Mar 7, 2015 · 0 comments
Closed

Rule proposal: prefer prop over prop={true} #11

lencioni opened this issue Mar 7, 2015 · 0 comments

Comments

@lencioni
Copy link
Collaborator

lencioni commented Mar 7, 2015

On our team when setting props to true, we prefer leaving out the ={true}. It would be nice to have a rule that enforces this (and I suppose one that can enforce the opposite.

Good:

<MyComponent myBooleanProp anotherProp="value" />

Bad:

<MyComponent myBooleanProp={true} anotherProp="value" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants