/**
* @prettier
*/
import { b } from 'b';
import type { A } from 'a';
import { a } from 'a';
// Should not become: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
import { a, type A } from "a";
/**
* @prettier
*/
import { b } from "b";
In https://github.com/IanVS/prettier-plugin-sort-imports/issues/54#issuecomment-1546917730 we decided to protect top-of-file (before-first-import) comments more aggressively.
Unhappy Test Case: