trivago / prettier-plugin-sort-imports

A prettier plugin to sort imports in typescript and javascript files by the provided RegEx order.
Apache License 2.0
3.37k stars 133 forks source link

chore: Update `README` for `prettier` v3.x #242

Open basselworkforce opened 1 year ago

basselworkforce commented 1 year ago

While testing with prettier v3 I found that it is now necessary to add the plugin to the config with npm (when I never had to before) as per:

module.exports = {
    ...
    "plugins": ["@trivago/prettier-plugin-sort-imports"]
}

https://github.com/trivago/prettier-plugin-sort-imports#usage

lukeapage commented 1 year ago

Confirmed - same for me.

I got warnings about unknown config options and at first I thought this was the issue, but it was because the plugin was no longer auto loaded.