Skip to content

Comment between decorator and class formats oddly #2507

@karptonite

Description

@karptonite

See here

@Foo()
// FOO
export class Bar{}

formats to:

@Foo()
export // FOO
class Bar {}

It works, but I think the expected output should be:

@Foo()
// FOO
export class Bar {}

Awesome project--Thanks so much for the hard work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:commentsIssues with how Prettier prints commentslocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions