Replies: 3 comments
-
|
Can you make it a discussion? That's not actually a bug |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm sorry, but I may not have permission to do this; there is no "Convert to discussion" button. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Canonical svelte has script indented. Easy enough to do though. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Environment information
What happened?
I suggest changing the default value of
indentScriptAndStyleto true for HTML and Svelte.The current decision (discussed in PR #7333) seems to rely on Prettier's default value of
vueIndentScriptAndStylefor Vue. The statistics in PR probably reflects Vue usage patterns rather than for HTML or Svelte.In fact, Prettier defaults to indenting
<script>and<style>tags in HTML and Svelte, treating Vue as an exception.The issue that introduced the Vue-specific option (see Prettier Issue #3888) shows that most participants voted to indent; however, the default remained false for backward compatibility.
Expected result
HTML and Svelte: set the default of
indentScriptAndStyletotrue.Vue: keep the default as false (matching Prettier's
vueIndentScriptAndStyle), or follow theindentScriptAndStylesetting if we want consistency across languages.This is similar to how Biome handles
package.json(whereexpandis enabled by default to match common expectations).Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions