ggascoigne / prettier-plugin-import-sort

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

Support config via prettier #11

Closed kekel87 closed 4 years ago

kekel87 commented 4 years ago

I do not find that the configuration should be in the package.json. Would it be possible to support the configuration files prettier (.prettierrc, ...)?

ggascoigne commented 4 years ago

The issue here is that the config for import-sort lives where that plugin chooses, that means that it will read them from package.json or from .importsortrc. This is unlikely to be changed as part of this package, but you could request this over at https://github.com/renke/import-sort if you like.