Skip to content

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

@stryju

Description

@stryju

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:flowIssues affecting Flow-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions