prettier-plugin-svelte
JSON →Prettier plugin for formatting Svelte components, supporting Svelte 3, 4, and 5. Current stable version is 3.5.1, with active development. Automatically formats HTML, CSS, and JavaScript within Svelte files, including Svelte-specific syntax like each loops, if blocks, and event bindings. Key differentiators: official plugin from the Svelte team, integrates natively with the Svelte VS Code extension, and supports Prettier v3 (v2 works with Prettier v2). Released on npm, ships TypeScript types, and follows Prettier's plugin API. Compared to generic formatters, this plugin understands Svelte's template syntax and provides options like sorting order and strict mode.
Traffic · last 30 days ↓50% vs prev 7d
top countries 🇺🇸 United States · 🇳🇱 Netherlands · 🇨🇦 Canada · 🇫🇮 Finland · 🇳🇴 Norway