IanVS / prettier-plugin-sort-imports

An opinionated but flexible prettier plugin to sort import statements
Apache License 2.0
951 stars 21 forks source link

Support for Prettier 3.x #112

Closed coycoylaniba closed 1 year ago

coycoylaniba commented 1 year ago

Is your feature request related to a problem? Not that big

Describe the solution you'd like @ianvs/prettier-plugin-sort-imports 4.0.2 └── ✕ unmet peer prettier@2.x: found 3.0.0

Describe alternatives you've considered I have nothing.

Additional context image

darenmalfait commented 1 year ago

When using prettier 3 I'm actually not able to run it. Getting a lint error when using this as a plugin.

ESLint: 8.44.0

TypeError: Cannot set property message of  which has only a getter
    at Linter._verifyWithoutProcessors
krisgrm commented 1 year ago

could be related? https://stackoverflow.com/questions/76624993/prettier-3-0-0-typeerror-prettier-resolveconfig-sync-is-not-a-function

IanVS commented 1 year ago

@darenmalfait that looks like an ESLint error. Do you have a reproduction you can share?

IanVS commented 1 year ago

We've released 4.1.0 with full support for prettier 3. If anyone has a problem, please open a new issue with as much detail as you can, and ideally a way to reproduce it.

darenmalfait commented 1 year ago

My issue is fixed with 4.1.0. 👍