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

Option to disable offset of the top level script tag #31

Closed
IlyaSemenov opened this issue May 23, 2019 · 1 comment
Closed

Option to disable offset of the top level script tag #31

IlyaSemenov opened this issue May 23, 2019 · 1 comment
Labels
wontfix This will not be worked on

Comments

@IlyaSemenov
Copy link

IlyaSemenov commented May 23, 2019

Considering this code:

<script>
	export const foo = 123
</script>

<h1>foo = {foo}</h1>

can there be at least the option to disable indentation of the script? It looks awful especially in complex components, where like 80% of code becomes indented for no reason.

prettier itself defaults to not indent first-level SFC tags (prettier/prettier#3888).

@jamesbirtles
Copy link
Contributor

Technically prettier does default to indenting when parsing as html (See playground example) and seeing as the standard use by svelte throughout the docs is to indent I'm inclined to leave it like this without significant support for without

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants