import-sort icon indicating copy to clipboard operation
import-sort copied to clipboard

interleave code between imports

Open safareli opened this issue 4 years ago • 0 comments
trafficstars

If you have:

import("foo")
console.log("biz")
import("bar")

Despite what you have in styles, you would get the console.log to be pushed at the end of imports

import("foo")
import("bar")

console.log("biz")

is there something one can do to put non import code in between imports? (reposting from https://github.com/ggascoigne/prettier-plugin-import-sort/issues/19)

safareli avatar Jan 19 '21 08:01 safareli