Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use user's Svelte parser when formatting if necessary #2578

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

dummdidumm
Copy link
Member

This makes formatting "just work" if users use Svelte 5 but don't have prettier (and the plugin) installed in their workspace

Depends on sveltejs/prettier-plugin-svelte#471

@jasonlyu123 what do you think of this approach?

Note to self: The formatting code is really hard to understand, either now or soon we should clean that up.

This makes formatting "just work" if users use Svelte 5 but don't have prettier (and the plugin) installed in their workspace

Depends on sveltejs/prettier-plugin-svelte#471
@dummdidumm dummdidumm marked this pull request as ready for review November 11, 2024 14:41
@dummdidumm dummdidumm merged commit 437b0e1 into master Nov 11, 2024
3 checks passed
@dummdidumm dummdidumm deleted the prettier-pass-svelte-compiler branch November 11, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant