Skip to content
goard
Go to anything
Open any GitHub user, repo or page
GitHub rate limit reached. Fresh data resumes in about 3 min. Sign in for a higher limit.

Format your svelte components using prettier.

TypeScript MIT 950 KB Created Aug 22, 2018
Stars 814 Forks 99 Watchers 11 Open issues 45 Open PRs 9
History

7 branches 66 tags

main[email protected] #538 Version Packages (#538) 7809486
#540 fix: treat <textarea> content as whitespace-sensitive (#540) c00a331
#539 fix: don't drop script/style content when the closing tag has whitesp… dc94a0b
#537 fix: preserve nested rest patterns in {#each} destructuring context (… 1d8b086
[email protected] #535 Version Packages (#535) 0b4f82f
#533 feat: support Svelte 5 declaration tags (#533) aa3eb1e
[email protected] #531 Version Packages (#531) ec93dae
#530 fix: print `@const` correctly (#530) afec2e8
[email protected] #527 Version Packages (#527) e7650cd
#526 chore: fix changeset (#526) 13f628c
#525 chore: release 4.0 (#525) 152b8cc
#524 chore: setup changesets / oidc publishing (#524) 48351c9
#523 chore: supply-chain hardening (#523) 54ac4b7
#522 chore: switch to pnpm (#522) ba3ffbd
#521 fix: reorder endregion comments (#521) cff9a93
chore: docs + changelog 75887f3
#520 breaking: remove `svelteBracketNewLine` (#520) 994ee36
#512 breaking: use modern-ast (#512) 84e6bf4
merge 8986eb5
Merge branch 'version-3' into upstream-master 3b89ac7
version-3v3.5.2 chore: release 3.5.2 44dda20
#519 fix: handle computed properties in e.g. `{#each}` blocks (#519) ccaaf35
#518 fix: handle comments in `bind:` get/set tuple (#518) 1e2adf9
#517 fix: preserve non-breaking spaces (#517) 287b98c
v3.5.1 #513 fix: Svelte 5 - print trailing attribute comments (#513) c4b7844
Merge branch 'version-3' into upstream-master ede1f76
chore: bump pkg 524bdc0
v3.5.0 #510 feat: print attribute comments (Svelte 5) (#510) fa0fc94
v3.4.1 chore: publish 3.4.1 f3b7b8b
fix: don't remove parantheses of `bind:`ings with `as` type casts d64fb2e
#508 fix: externalize all prettier imports (#508) ea8b57c
#495 feat: support attachments (#495) 7d68c92
docs: make version note clearer d509d0f
chore: release 3.3.3 259922f
#480 fix: ensure bind get/set is broken up correctly when too long (#480) c63b024
v3.3.2 fix: preserve `style`/`script` tags at the end of the file when using… 76c04eb
fix: handle type annotations on Svelte control flow blocks d81ffcb
v3.3.1 feat: support `bind:value={get, set}` ab6e713
chore: refactor printJS 4e88090
v3.3.0 feat: support `#each` without `as` cb3ab67
#474 feat: support upcoming `<svelte:boundary>` / `<svelte:html>` (#474) 29d9f94
v3.2.8 chore: release 3.2.8 c496666
#471 chore: provide option to pass Svelte compiler path (#471) 9010a44
chore: mark 3.2.7 as released d2c680c
v3.2.7 chore: release 3.2.7 10d387a
#462 breaking: remove svelteStrictMode option (#462) 94b5a07
#461 chore: drop support for svelte 3 and 4 (#461) 81f8f0d
#460 chore: replace FastPath with AstPath (#460) 7177a94
#452 chore: run prettier in ci (#452) 2f83961
fix: preserve commas in array expressions 5630294
fix: properly determine end of snippet parameters with TS annotations a1a3f92
fix: force quote style inside style directives 0c5692a
v3.2.6 chore: release 3.2.6 727ddce
#451 feat: never quote single attribute expressions in Svelte 5 (#451) 699c7a9
v3.2.5 chore: release 3.2.5 10caec6
fix: format TS in the template 6a1e4d5
#446 chore(deps-dev): bump braces from 3.0.2 to 3.0.3 (#446) c10a570
v3.2.4 chore: release 3.2.4 f57f888
fix: adjust regex 268c26d
#437 chore: check types in ci (#437) 5516102
v3.2.3 chore: release 3.2.3 b120c4d
#435 fix: do not force slots to be self-closed (#435) 539169b
v3.2.2 chore: release 3.2.2 601ee41
fix: adjust render tag printing for Svelte 5 AST changes c968fef
chore: cross-test dirs test.only support 08d7a8b
v3.2.1 fix: handle updated `@render` tag AST shape 96049c6
v3.2.0 chore: release 3.2.0 c8317eb
#430 feat: semi-standalone browser build (#430) d89241e
fix: handle updated `Snippet` block AST shape 288d915
#423 chore: remove Buffer usage for browser environments (#423) 99c885e
#425 fix: don't duplicate comments of nested script/style tags (#425) cc856a0
#424 feat: format JSON script tags (#424) 1884f22
v3.1.2 fix: handle `>` tags in attributes 1c4bcfe
v3.1.1 fix: handle types on each/await contexts 66ec48b
#409 docs: Rewrite README and migration guide (#409) f284d1b
v3.1.0 feat: add experimental support for Svelte 5 dd66514
#399 docs: Update README.md (#399) 9060efd
#397 docs: remove nonexistent options (#397) b269610
v3.0.3 fix: handle static tag attribute on svelte:element 6fc0b64
v3.0.2 chore: release 3.0.2 90ef305
#394 fix: add `package.json` to package exports (#394) 0176f15
v3.0.1 fix: handle scss/less 9fb260a
#391 docs: remove "for svelte 3" (#391) f86171d
docs: fix tables eddd880
Update CHANGELOG.md 54551a2
v3.0.0 #386 docs: update readme (#386) 8d77785
#383 feat: provide plugin config type definitions (#383) b07b7cf
#382 breaking: remove deprecated options (#382) 5b70335
#381 perf: use getVisitorKeys (#381) d1cfc0b
#380 breaking: new options, deprecate svelteStrictMode (#380) 23f3dc4
#335 (breaking) update to prettier v3 (#335) 19654d5
#373 docs: fix small typo (#373) 57bd5e3
#371 docs: update README.md with information for using prettier-plugin-tai… 9dcc594
#367 chore: mark as compatible with Svelte 4 (#367) 97f1d17
#358 chore: release 2.10.0 (#358) bd91bbf
#357 feat: allow multiple comments atop of script/style tags (#357) b7d0562
#345 fix: refine attributeRegex (#345) 4ce3dd3
#356 (feat) trim whitespace in `class` attributes (#356) a94563c
#355 feat: support `svelte:document` (#355) 7abac5f
#354 feat: support insert/require pragma options (#354) 2fbd812