Skip to content

Snippet return has no braces #234

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
levinaHR opened this issue Feb 3, 2022 · 2 comments
Closed

Snippet return has no braces #234

levinaHR opened this issue Feb 3, 2022 · 2 comments

Comments

@levinaHR
Copy link

levinaHR commented Feb 3, 2022

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.

@ice-chillios
Copy link

@levinaHR I made change to this, let me know if this is fixed by v4.3.1

@levinaHR
Copy link
Author

levinaHR commented Feb 9, 2022

It's fixed now, thank you!

@levinaHR levinaHR closed this as completed Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants