Svelte Svelte Changelog
  • Packages
  • Devlog
GitHub Visit the repository

sveltejs/prettier-plugin-svelte

Repository tracker

Issues

bug: Combining function bindings with comments causes unnecessary parentheses to be inserted

#500
28 days ago • Jul 22, 2025
<Foo bind:value={ // eslint-disable-next-line @typescript-eslint/no-unsafe-return -- ignore () => bar ?? '', (v) => { bar = v; } } /> Formatting the above code results in the following code. <Foo bind:value={ // eslint-disable-next-line @typescript-eslint/no-unsafe-return -- ignore (() => bar ?? '', (v) => { bar = v; } } /> I believe parentheses before () => bar ?? '' is unnecessary.

Adjust quoting behavior, adjust/remove strict option

#348
Apr 5, 2024
Remove the "always quote things" option because it's technically invalid: https://github.com/sveltejs/svelte/issues/7925 This means we should likely deprecate the strict mode option altogether in favor of a more fine grained set of options around self closing tags, shorthand props etc.
Repositories
  • sveltejs/svelte
  • sveltejs/kit
  • sveltejs/cli
  • sveltejs/vite-plugin-svelte
  • sveltejs/eslint-plugin-svelte
  • sveltejs/eslint-config
  • sveltejs/svelte-eslint-parser
  • sveltejs/language-tools
  • sveltejs/acorn-typescript
  • sveltejs/svelte-devtools
  • sveltejs/svelte-preprocess
  • sveltejs/rollup-plugin-svelte
  • sveltejs/prettier-plugin-svelte

Built by WarningImHack3r.