prettier-plugin-sort-imports icon indicating copy to clipboard operation
prettier-plugin-sort-imports copied to clipboard

Add sort by length option

Open KLewin23 opened this issue 1 year ago • 13 comments

Adds the option to be able to sort within import groups by length mentioned #76, choices are

  • asc shortest to longest
  • desc longest to shortest
  • null no length rule applied

After length imports are sorted alphabetically

I have an internal fork with this implemented already so this doesn't affect me, but this is the general setup I have been using

KLewin23 avatar Mar 25 '23 07:03 KLewin23

Would love to have this!

devlsh avatar Apr 24 '23 18:04 devlsh

I also would love to have this. When it will be on the prod guys?

expiritus2 avatar May 21 '23 07:05 expiritus2

Had to update the branch, think it needs reaproving

KLewin23 avatar Aug 29 '23 22:08 KLewin23

If this gets merged prettier can be renamed prettiest :)

spookyuser avatar Sep 27 '23 16:09 spookyuser

+1 for this, could we merge it?

jackdh avatar Sep 29 '23 12:09 jackdh

Gonna need someone to approve and merge it, keep coming back to it approved with merge blocks

KLewin23 avatar Sep 29 '23 15:09 KLewin23

@annesnour03 can you approve so I can get this put away

KLewin23 avatar Nov 15 '23 14:11 KLewin23

I still cant merge it @annesnour03 so idk if you can if not... it waits even more XD

KLewin23 avatar Nov 15 '23 19:11 KLewin23

image

spookyuser avatar Nov 16 '23 11:11 spookyuser

@ayusharma @byara come to our rescue please!

jackdh avatar Nov 16 '23 14:11 jackdh

Any news on this :)? @ayusharma & @byara

Miguel-A-Jara avatar Apr 30 '24 20:04 Miguel-A-Jara

@ayusharma @byara please add this

Dugnist avatar Aug 17 '24 22:08 Dugnist

1 year later XD

KLewin23 avatar Aug 17 '24 23:08 KLewin23