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

Add option to have custom separator between styles, markup and scripts #111

Closed
MananTank opened this issue Jul 20, 2020 · 2 comments
Closed

Comments

@MananTank
Copy link

MananTank commented Jul 20, 2020

Why Add this ?
sometimes it becomes very hard to separate sections when the component is complicated.
I usually prefer 2-3 newlines between each section, so that I can easily differentiate sections.

Example 1: : Put 2 new lines between sections

{
 "svelteSectionSeperator": "\n\n" 
}
<script> ..... </script>


<abc> ....</abc>
<xyz> ....</xyz>


<style> ..... </style>

Example 2: :

{
 "svelteSectionSeperator": "\n <!------------- > \n" 
}
<script> ..... </script>

<!------------- >

<abc> ....</abc>
<xyz> ....</xyz>

<!------------- >

<style> ..... </style>
@llamerr
Copy link

llamerr commented Apr 26, 2021

Looking for same feature but to separate redux actions/types/other stuff to make it readable. Any info on this exists? Like general use plugin for same purpose?

@dummdidumm
Copy link
Member

With #314 implemented you can chose svelteSortOrder: none and put any number of comments between the script/style/html sections to get what you want. I don't think a separate option for this specific use case would be good, we need to keep the number of options lean - therefore closing this.

@dummdidumm dummdidumm closed this as not planned Won't fix, can't repro, duplicate, stale Oct 10, 2022
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