GitShow/sveltejs/prettier-plugin-svelte
sveltejs

prettier-plugin-svelte

Format your svelte components using prettier.

by sveltejs
Star on GitHubForknpm

TypeScript

813 stars99 forks44 contributorsActive · 2w agoSince 2018prettier-plugin-svelte@4.1.1MIT

Meet the team

See all 44 on GitHub →
dummdidumm
dummdidumm180 contributions
jamesbirtles
jamesbirtles61 contributions
Conduitry
Conduitry36 contributions
dependabot[bot]Bot
dependabot[bot]20 contributions
jarrodldavis
jarrodldavis16 contributions
ehrencrona
ehrencrona10 contributions
jrmajor
jrmajor6 contributions
github-actions[bot]Bot
github-actions[bot]4 contributions

Languages

View on GitHub →
TypeScript63.7%
HTML35.4%
JavaScript0.9%

Commit activity

Last 12 weeks · 24 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
50
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Active · Last activity 2w ago
See all on GitHub →
janosh
Each-block array expression collapses onto one long lineOpenIssue

Formatting a multiline array expression inside collapses it onto one long line. Input: Command: Actual output: Expected: keep or introduce sensible line breaks for the long array literal, similar to normal JS array formatting. Versions: Prettier 3.9.1, prettier-plugin-svelte 4.1.1, Node 24.18.0.

janosh · 2d ago
janosh
Bad spacing when formatting each-block expression with callbackOpenIssue

Formatting a nested expression with an inline callback inserts awkward spaces inside the call expression. Input: Actual output with : Expected: Versions: Prettier 3.9.1, prettier-plugin-svelte 4.1.1, Svelte 5.56.x, Node 24.18.0. I first saw this via OXC/Vite Plus formatting, but the spacing reproduces with directly.

janosh · 2d ago
ryanatkn
fix: make `menu` correctly a blockOpenPR

is a block like , but is currently miscategorized causing formatting differences. The spec: https://html.spec.whatwg.org/multipage/rendering.html#lists

ryanatkn · 3d ago

Recent fixes

View closed PRs →
hyunbinseo
Tailwind class sorting does not work from v4ClosedIssue

Using the latest template, Tailwind class sorting does not work. Reproduction: https://github.com/hyunbinseo/svelte-kit-templates/tree/prettier-plugin-svelte-542 This might be a Windows only bug considering how no one noticed it..

hyunbinseo · 2w ago
cfraz89
Add standalone buildMergedPR

The standalone build allows the plugin to be used in the browser, prettier/standalone. Allows for features such as in-browser formatting and codemods. Have added an exports field to package.json to ensure the correct standalone/node/esm/cjs version of the package is used based on environment. I've also changed the 'svelte' exclude to 'svelte/compiler' in the standalone rollup configs, as the compiler was getting bundled in and I have the feeling it isnt intended to be. If this is the case, you may want to adjust the standard rollup config too.

cfraz89 · 2w ago
baseballyama
fix: treat <textarea> content as whitespace-sensitiveMergedPR

`textareapreisPreTagContent` so the content is preserved verbatim, matching Prettier core.

baseballyama · 2w ago
Structured data for AI agents

Repository: sveltejs/prettier-plugin-svelte. Description: Format your svelte components using prettier. Stars: 813, Forks: 99. Primary language: TypeScript. Languages: TypeScript (63.7%), HTML (35.4%), JavaScript (0.9%). License: MIT. Latest release: prettier-plugin-svelte@4.1.1 (2w ago). Open PRs: 9, open issues: 45. Last activity: 2w ago. Community health: 50%. Top contributors: dummdidumm, jamesbirtles, Conduitry, dependabot[bot], jarrodldavis, ehrencrona, jrmajor, github-actions[bot], clebert, orlov-vo and others.

·@ofershap

Replace github.com with gitshow.dev