Skip to content

JSX elements with no children don't self close on format #562

Open
@marvinhagemeister

Description

@marvinhagemeister

Describe the bug

JSX elements with no children don't self close on format.

Deno version: 1.37.0

Input Code

const a = <div></div>

Expected Output

const a = <div />

Actual Output

const a = <div></div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    configurationConfigurable formatting behaviour.enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions