Skip to content

jsx compiler leaves trailing whitespace in object definitions #3553

Closed
@hatched

Description

@hatched

Assuming the following render call.

      React.render(
          <views.AddedServicesButton
            serviceCount={serviceCount}
            closed={closed}
            changeState={this.__changeState.bind(this)}/>, container);

The generated output.

      React.render(
          React.createElement(views.AddedServicesButton, {
            serviceCount: serviceCount, 
            closed: closed, 
            changeState: this.__changeState.bind(this)}), container);

You'll notice that there is a trailing white space on the serviceCount and closed properties which is causing issues for linters which don't allow trailing white space.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions