Open sabatorussonttdata opened 1 year ago
You have 3 more issues talking about this, search them
TL;DR: https://github.com/trivago/prettier-plugin-sort-imports/issues/240 https://github.com/trivago/prettier-plugin-sort-imports/issues/245 https://github.com/trivago/prettier-plugin-sort-imports/issues/244
A workaround is to use Javascript config format .prettierrc.js
instead of JSON config format .prettierrc
: https://github.com/trivago/prettier-plugin-sort-imports/issues/131#issuecomment-1163488213
Nothing works for me.
Package manager: Yarn (berry, 3.6.x) Node: 20.5.1 IDE: vscode, using the prettier-vscode extension
Prettier 2.8.8 -> Prettier 3.0.3
, Yarn 3.6.0 -> Yarn 3.6.3
this solution works for me https://github.com/trivago/prettier-plugin-sort-imports/issues/245#issuecomment-1658194200
this solution works for me https://github.com/trivago/prettier-plugin-sort-imports/issues/245#issuecomment-1659176347
// .prettierrc
plugins: ['@trivago/prettier-plugin-sort-imports']
This issue still remains in prettier 3.1.1 I tried:
.prettierrc
.prettierrc
to .prettierrc.js
.prettierrc
to .prettierrc.config.js
require()
and import()
.but none seems to work
this solution works for me #245 (comment)
// .prettierrc plugins: ['@trivago/prettier-plugin-sort-imports']
Thank you a lot, saved my day. This should be in the Readme.
It doesn't work still. :(
I've tried everything even require
and require.resolve
.
It doesn't work still. :( I've tried everything even
require
andrequire.resolve
.
if you have multiple plugins loaded, try adjusting the order, e.g. keep @trivago/prettier-plugin-sort-imports last
but I found that if you use prettier-plugin-organize-attributes at the same time, the latter one will inevitably fail
Environment Prettier version**: 3.0.3
Describe the bug
with version >=3 prettier-plugin-sort-imports doesn't work while with version 2.0.8 it works correctly. How come ?