prettier-plugin-sort-imports
prettier-plugin-sort-imports copied to clipboard
Replace importOrderSeparation with <SEPARATOR>
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-",
"^~"
"^[./]"
]
It is also not necessary to remove importOrderSeparation
, which can be retained to support backward compatibility.
I would also like to see this implemented to have more control over the import groups.
+1 trying to have groups of related files e.g. local files @/...
imports with ../
imports without a space between
Seems like a bit of a duplicate of https://github.com/trivago/prettier-plugin-sort-imports/issues/166?