Skip to content

Rule proposal: one prop per line #13

Closed
@lencioni

Description

It might be nice to enforce only having one prop per line.

Good:

<MyComponent
  firstProp="value"
  secondProp="value"
/>

Bad:

<MyComponent firstProp="value" secondProp="value" />

Or maybe it could be configured to only apply to multiline components. In which case:

Good:

<MyComponent firstProp="value" secondProp="value" thirdProp="value" />

Bad:

<MyComponent firstProp="value" secondProp="value"
  thirdProp="value" />

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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