Skip to content

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

@IlyaSemenov

Description

@IlyaSemenov

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions