Formatting the style tag in Vue, Svelte, and Astro without Prettier #799
bitbloxhub
started this conversation in
Show and tell
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.
-
First add
eslint-plugin-format,dprint-plugin-malva, anddprint-plugin-markupto yourdevDependencies.Then, put something like the following in
eslint.config.js, deleting the parts you don't need and adjusting the indentation settings to your project.For more information, see https://github.com/antfu/eslint-plugin-format, https://github.com/g-plane/malva, and https://github.com/g-plane/markup_fmt.
Note
I am not sure if there are any more Vue eslint rules that i should disable, or if any of them i have disabled are not covered by markup_fmt.
Note
Updated 2026-02-16, fixed script indent for svelte.
Beta Was this translation helpful? Give feedback.
All reactions