Skip to content

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

Closed
@lencioni

Description

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" />

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions