Skip to content
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

Tag braces style #833

Open
coldfeudal opened this issue Jul 23, 2024 · 2 comments
Open

Tag braces style #833

coldfeudal opened this issue Jul 23, 2024 · 2 comments

Comments

@coldfeudal
Copy link

Is there any way to enforce tag < /> linebreak style?

E.g. transform this

<div
  class="device-image bc"
  style:background-image="url('/devices/{backgroundImage}')" />

into this

<div
  class="device-image bc"
  style:background-image="url('/devices/{backgroundImage}')"
/>

Ideally only for tags with multiple lines/arguments

@Shyam-Chen
Copy link

Shyam-Chen commented Aug 8, 2024

<div
  class="device-image bc"
  style:background-image="url('/devices/{backgroundImage}')"
></div>
<FooBar
  class="device-image bc"
  style:background-image="url('/devices/{backgroundImage}')"
/>

Use prettier-plugin-svelte.


$ npx svelte-migrate self-closing-tags

@mikededo
Copy link
Contributor

The feature is tracked in here: #590

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants