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

Unstable comment around JSX attributes #1209

Open
vjeux opened this issue Apr 12, 2017 · 0 comments
Open

Unstable comment around JSX attributes #1209

vjeux opened this issue Apr 12, 2017 · 0 comments
Labels
area:comments Issues with how Prettier prints comments area:idempotency Issues with re-printing Prettier’s output lang:jsx Issues affecting JSX (not general JS issues) type:bug Issues identifying ugly output, or a defect in the program

Comments

@vjeux
Copy link
Contributor

vjeux commented Apr 12, 2017

Prettier 1.10.2
Playground link

Input:

<div
  radiusEditorHelpTextAlignment=
    // $FlowFixMe found when converting React.createClass to ES6
    {this.props.radiusEditorHelpTextAlignment}
/>;

Output:

<div
  radiusEditorHelpTextAlignment=// $FlowFixMe found when converting React.createClass to ES6
  {this.props.radiusEditorHelpTextAlignment}
/>;

Second Output:

<div
  radiusEditorHelpTextAlignment={this.props.radiusEditorHelpTextAlignment // $FlowFixMe found when converting React.createClass to ES6
  }
/>;
@vjeux vjeux added type:bug Issues identifying ugly output, or a defect in the program area:comments Issues with how Prettier prints comments labels Apr 12, 2017
@lydell lydell added the lang:jsx Issues affecting JSX (not general JS issues) label Sep 5, 2017
@thorn0 thorn0 added the area:idempotency Issues with re-printing Prettier’s output label May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:comments Issues with how Prettier prints comments area:idempotency Issues with re-printing Prettier’s output lang:jsx Issues affecting JSX (not general JS issues) type:bug Issues identifying ugly output, or a defect in the program
Projects
None yet
Development

No branches or pull requests

3 participants