Skip to content

Formatting: semicolon inline comment gets pushed to previous line #136

@helixbass

Description

@helixbass

This:

while a
  ; # eslint-disable-line no-empty

is getting formatted like:

while a
  # eslint-disable-line no-empty
  ;

And more problematic, this:

if a
  ; # c

is getting formatted like:

if a
  # c

which is a parse error (not sure why the semicolon is disappearing eg whether it's on the Coffeescript AST side or the Prettier side)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions