Skip to content

Improve formatting of leading tokens in type union / intersection #910

@JohnnyMorganz

Description

@JohnnyMorganz

#854 will introduce support for leading tokens in unions / interesctions, but we should format them better:

  • If single line, remove a leading token
  • If multi line, start with a leading token:
type Foo = 
    | X
    | Y

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestluauFormatting related to Luau

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions