You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
plugins: [// other plugins...'prettier-plugin-svelte','prettier-plugin-brace-style',// must be after svelte plugin'prettier-plugin-tailwindcss',// must be "as last as possible" so can modify output of previous supported plugins, must be after "prettier-plugin-svelte"'prettier-plugin-merge',// must be last; needed when 2+ other plugins operate on same file type (same AST), or to fix incompatibilities introduced by "prettier-plugin-tailwindcss"]
As you can see various plugins must be before or after some other one, so a blanket rule regarding ordering is not viable.
This is a real pain point. The plugin natively "fixes" compatibility with other major plugins, but the user will inevitably encounter a plugin that will cause prettier to stop working. In that case "prettier-plugin-merge" is the solution.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The section Compatibility with other Prettier plugins should be improved.
One can use the prettier-plugin-merge to allow multiple plugins.
That plugin must be last:
As you can see various plugins must be before or after some other one, so a blanket rule regarding ordering is not viable.
This is a real pain point. The plugin natively "fixes" compatibility with other major plugins, but the user will inevitably encounter a plugin that will cause prettier to stop working. In that case "prettier-plugin-merge" is the solution.
All reactions