I have something like this:
import { Foo, type FooX } from "foo";
TypeScript's sort/organize imports as well as dprint's (so, deno fmt too) case insensitive sortings both order these with Foo first, then type FooX, as above.
However, simple-import-sort appears to flip them, putting type FooX before Foo, like:
import { type FooX, Foo } from "foo";
Even though if the type keyword were removed, it'd sort the other way.
This leads to a frustrating scenario in my editor where the formatter and eslint fix both run and flip it back and forth, leaving nobody happy.
The only clue I have about this is the mention of \u0000 in the readme, but I'm not sure how "Foo" would sort after "FooX\u0000".
I have something like this:
TypeScript's sort/organize imports as well as dprint's (so,
deno fmttoo) case insensitive sortings both order these withFoofirst, thentype FooX, as above.However,
simple-import-sortappears to flip them, puttingtype FooXbeforeFoo, like:Even though if the
typekeyword were removed, it'd sort the other way.This leads to a frustrating scenario in my editor where the formatter and eslint fix both run and flip it back and forth, leaving nobody happy.
The only clue I have about this is the mention of
\u0000in the readme, but I'm not sure how"Foo"would sort after"FooX\u0000".