Language plugin recommendations #8
Unanswered
robertmoura
asked this question in
Q&A
Replies: 1 comment
-
I am not actively using dprint anymore, I have no plugin recommendations. |
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
-
Love the idea of being able to configure all the languages in a Vue SFC file separately! Such a great idea. Had a bit of trouble finding good plugins to format Vue's style of HTML though. CSS or SCSS wasn't easy either. Did you have any recommendations to help format these languages well?
Here's a snippet of the configuration I'm using now:
Things I've tried for HTML:
For the HTML, I tried Prettier but because it has different formatting options for Vue files verses HTML files it treats it a bit differently. To get around this I also tried passing the html as a Vue file by setting
parser
to"vue"
but it expects a template tag to be wrapped around the HTML to be formatted properly.What I've tried for CSS/SCSS:
This plugin didn't seem to work well with CSS (nesting wasn't supported). I don't think it has an option to allow SCSS either.
This works well but seems overkill and is not super configurable. Although better than nothing!
Beta Was this translation helpful? Give feedback.
All reactions