ggascoigne / prettier-plugin-import-sort

Prettier plugin to pass javascript and typescript through import-sort
MIT License
110 stars 11 forks source link

interleave code between imports #19

Closed safareli closed 3 years ago

safareli commented 3 years ago

If you have:

import("foo")
// prettier-ignore
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")

// prettier-ignore
console.log("biz")

is there something one can do to put non import code in between imports?

ggascoigne commented 3 years ago

That really is an issue with import-sort itself, you should take it over to https://github.com/renke/import-sort