ESLint formatter for multiple script tags / script tag alongside script setup #6730
Unanswered
jaylinsell
asked this question in
Q&A
Replies: 0 comments
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.
-
Those utilising VS Code's formatting on save, have you come across the issue when trying to utilise multiple script tags?
A typical scenario:
Needing to set inheritAttrs to false when using script setup.
According to the documentation: https://v3.vuejs.org/api/sfc-script-setup.html#usage-alongside-normal-script, we'd just utilise an additional script tag like:
Though if you have the following settings enabled in VS Code:
VS Code automatically shifts the code inside the first script tag, and moves it into the second, resulting in:
I've spent hours trying to work out how to prevent this.
Is there a way?
Has anyone else come across this issue yet?
Beta Was this translation helpful? Give feedback.
All reactions