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

Long list of extended classes/interfaces is not broken into new lines #4944

Closed
stryju opened this issue Aug 7, 2018 · 0 comments
Closed
Labels
lang:flow Issues affecting Flow-specific constructs (not general JS issues) locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. status:has pr Issues with an accompanying pull request. These issues will probably be fixed soon! type:bug Issues identifying ugly output, or a defect in the program
Milestone

Comments

@stryju
Copy link

stryju commented Aug 7, 2018

Prettier 1.14.0
Playground link

--parser babylon

Input:

declare interface SVGUseElement
  extends SVGElement,
          SVGURIReference,
          SVGTests,
          SVGLangSpace,
          SVGExternalResourcesRequired,
          SVGStylable,
          SVGTransformable {
  +x: SVGAnimatedLength;
  +y: SVGAnimatedLength;
  +width: SVGAnimatedLength;
  +height: SVGAnimatedLength;
  +instanceRoot: SVGElementInstance;
  +animatedInstanceRoot: SVGElementInstance;
}

Output:

declare interface SVGUseElement
  extends SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable {
  +x: SVGAnimatedLength;
  +y: SVGAnimatedLength;
  +width: SVGAnimatedLength;
  +height: SVGAnimatedLength;
  +instanceRoot: SVGElementInstance;
  +animatedInstanceRoot: SVGElementInstance;
}

Expected behavior:
List of extended classes/interfaces should be split into multiple lines

@j-f1 j-f1 added type:bug Issues identifying ugly output, or a defect in the program help wanted We're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue! lang:flow Issues affecting Flow-specific constructs (not general JS issues) labels Aug 7, 2018
@j-f1 j-f1 changed the title [JS] Long list of extended classes/interfaces is not broken into new lines Long list of extended classes/interfaces is not broken into new lines Aug 7, 2018
@ikatyang ikatyang added status:has pr Issues with an accompanying pull request. These issues will probably be fixed soon! and removed help wanted We're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue! labels Oct 12, 2018
@ikatyang ikatyang added this to the 1.15 milestone Oct 25, 2018
@lock lock bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jan 23, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jan 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lang:flow Issues affecting Flow-specific constructs (not general JS issues) locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. status:has pr Issues with an accompanying pull request. These issues will probably be fixed soon! type:bug Issues identifying ugly output, or a defect in the program
Projects
None yet
Development

No branches or pull requests

3 participants