3 ms·
I had a look at prettier's github issues in the mean time and > No, prettier tries not to change the semantics (specifically, the AST) of the program, and sort
by johnchristopher 6y ago
I had a look at prettier's github issues in the mean time and
> No, prettier tries not to change the semantics (specifically, the AST) of the program, and sorting imports/keys could break that guarantee. See here for more details and context, as well as links to similar/duplicate issues: #1684 (comment)
it makes sense not to make it a default.
https://github.com/prettier/prettier/issues/2460 https://github.com/prettier/prettier/issues/2460 https://github.com/prettier/prettier/issues/1684#issuecomment-303547552 https://github.com/prettier/prettier/issues/1684#issuecommen...