Open
Description
It would be sweet if there was a way to format the code using Prettier
or something similar by pressing Alt
+Shift
+F
.
As of now, my code in the REPL can get pretty gnarly.
I started working on something using prettier/standalone
, but it's far from production ready.
Maybe people who are smarter than me want to take a crack at it.
https://github.com/thebells1111/svelte-prettier-browser-plugin-demo
And here's the demo deployed:
It's a little slow to load, maybe because prettier/standalone is so large. Probably needs to be changed to a webworker or something.
https://5f9c73ded4709a39fed50575--frosty-meninsky-8c72bd.netlify.app/