deno
deno copied to clipboard
deno-fmt: move imports to top, sort tailwind classes
I'm missing two formatting options which prettier solves via a plugin mechanism:
- prettier-plugin-tailwindcss is rather important for tailwind dx
- move imports to top of file: in a large file, just past the import above the function you're working on, and on save it's at the top. It's more maintainable to have imports at the top.
@dsherret any thoughts on that?
y'all are welcome to take inspiration from my implementation of tailwind class sorting in biome once done (note: work in progress, lots to do still) - it is tailwind labs approved :)
this would be great for the dx