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 first level of indent #105

Closed
xpuu opened this issue Jun 28, 2020 · 0 comments · Fixed by #112
Closed

Option to disable first level of indent #105

xpuu opened this issue Jun 28, 2020 · 0 comments · Fixed by #112

Comments

@xpuu
Copy link

xpuu commented Jun 28, 2020

This was already discussed here, but since then prettier added new option vueIndentScriptAndStyle, to make Evan You (and me) more happy. I wonder if this option could be somehow abused for Svelte.

When using 4 spaces for indentation, the code doesn't look good. Absence of this setting forces me to use 2 spaces for indentation (compromise), which reduces readability for me.

<h1>{foo}</h1>

<script>
    let foo = 'bar'
</script>

<style>
    h1 {
        color: red;
    }
</style>
dummdidumm pushed a commit that referenced this issue Aug 30, 2020
…112)

Closes #105

Add a new option to the plugin to disable the first level of indent in script and style tags. Equivalent of vueIndentScriptAndStyle.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant