Skip to content

Yaml remove new line before last comment #10922

@fisker

Description

@fisker

Prettier 2.3.0
Playground link

--parser yaml

Input:

only: issues

# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':

Output:

only: issues
# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':

Expected behavior:

Should keep empty line, found this during #10921 playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:commentsIssues with how Prettier prints commentslang:yamlIssues affecting YAML

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions