deno icon indicating copy to clipboard operation
deno copied to clipboard

deno-fmt: move imports to top, sort tailwind classes

Open guy-borderless opened this issue 2 years ago • 4 comments

I'm missing two formatting options which prettier solves via a plugin mechanism:

  1. prettier-plugin-tailwindcss is rather important for tailwind dx
  2. 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.

guy-borderless avatar Dec 17 '23 13:12 guy-borderless

@dsherret any thoughts on that?

bartlomieju avatar Dec 19 '23 13:12 bartlomieju

also note this: biomjs and this: sql

guy-borderless avatar Dec 30 '23 10:12 guy-borderless

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 :)

DaniGuardiola avatar Dec 31 '23 03:12 DaniGuardiola

rustywind

guy-borderless avatar May 20 '24 10:05 guy-borderless

this would be great for the dx

felix-schindler avatar Jun 10 '24 11:06 felix-schindler