Skip to content

Snippet return has no braces #234

@levinaHR

Description

@levinaHR

Snippets like rfc, rcc, rafc and such returns <div></div> in a single line without braces like this:
export default function Content() {
return <div></div>
}

Is there any way to change it to this format?
export default function Content() {
return (
<div></div>
)
}

Also for some reason even if I enable prettier integration it won't work. For example if i disable semicolon in Prettier and keep the ES7 React semicolon enabled, the snippet will still have semicolon.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions