Skip to content

Add node flags for blank lines before and after a node #18985

@amcasey

Description

@amcasey

When inserting a node (e.g. during a code fix or refactoring), it would be very helpful if there were a way to say "ensure that there is a blank line following this node", rather than inserting one, since inserting one might result in a pair of blank lines. The determination of whether or not to actually insert a linebreak would be made in the printer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: APIRelates to the public API for TypeScriptIn DiscussionNot yet reached consensusSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions