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

Replace importOrderSeparation with <SEPARATOR>

Open joutvhu opened this issue 1 year ago • 4 comments

I think importOrderSeparation should be removed and provide a <SEPARATOR> special word in the importOrder. It makes it easy for me to specify the split position I want.

"importOrder": [
  "<THIRD_PARTY_MODULES>",
  "<SEPARATOR>"
  "^app-",
  "^~"
  "^[./]"
]

joutvhu avatar Oct 30 '23 14:10 joutvhu

It is also not necessary to remove importOrderSeparation, which can be retained to support backward compatibility.

joutvhu avatar Oct 30 '23 14:10 joutvhu

I would also like to see this implemented to have more control over the import groups.

DaveKeehl avatar May 07 '24 16:05 DaveKeehl

+1 trying to have groups of related files e.g. local files @/... imports with ../ imports without a space between

adnjoo avatar May 30 '24 05:05 adnjoo

Seems like a bit of a duplicate of https://github.com/trivago/prettier-plugin-sort-imports/issues/166?

IanVS avatar Jun 25 '24 18:06 IanVS