To make this plugin work we had to use private Prettier APIs that can only be used by a single plugin at once. This means this plugin is incompatible with other Prettier plugins that are using the same APIs.
This GitHub issue will serve as a place to keep track of which Prettier plugins are incompatible — and hopefully we'll eventually find some workarounds, or even a proper long term solution. 👍
Known incompatibilities
@trivago/prettier-plugin-sort-imports
prettier-plugin-organize-imports
prettier-plugin-svelte (see below)
prettier-plugin-twig-melody
prettier-plugin-svelte
We've bundled the prettier-plugin-svelte directly into prettier-plugin-tailwindcss, so if you'd like to use this plugin with Svelte, just uninstall prettier-plugin-svelte and everything should work as expected.
Workarounds
While I have not tested it yet, @Mattinton provided one possible workaround in this comment.
To make this plugin work we had to use private Prettier APIs that can only be used by a single plugin at once. This means this plugin is incompatible with other Prettier plugins that are using the same APIs.
This GitHub issue will serve as a place to keep track of which Prettier plugins are incompatible — and hopefully we'll eventually find some workarounds, or even a proper long term solution. 👍
Known incompatibilities
@trivago/prettier-plugin-sort-importsprettier-plugin-organize-importsprettier-plugin-svelte(see below)prettier-plugin-twig-melodyprettier-plugin-svelte
We've bundled the
prettier-plugin-sveltedirectly intoprettier-plugin-tailwindcss, so if you'd like to use this plugin with Svelte, just uninstallprettier-plugin-svelteand everything should work as expected.Workarounds
While I have not tested it yet, @Mattinton provided one possible workaround in this comment.