Socket
Socket
Sign inDemoInstall

prettier-plugin-svelte

Package Overview
Dependencies
20
Maintainers
3
Versions
57
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous13456Next

3.0.1

Diff

Changelog

Source

3.0.1

  • (fix) support less/scss in style tags
dummdidumm
published 3.0.0 •

Changelog

Source

3.0.0

  • (breaking) requires prettier version 3. This may require adjustments to your configuration file, see the migration guide for more info
  • (breaking) requires node version 14 or higher
  • (breaking) Whether or not empty elements/components should self-close is now left to the user - in other words, if you write <div /> or <Component /> that stays as is, and so does <div></div>/<Component></Component>. If svelteStrictMode is turned on, it will still only allow <div></div> notation for elements (but it will leave your components alone)
  • (breaking) svelteAllowShorthand now takes precedence over svelteStrictMode, which no longer has any effect on that behavior. Set svelteAllowShorthand to false to get back the v2 behavior
  • (breaking) remove deprecated svelteSortOrder options
dummdidumm
published 2.10.1 •

Changelog

Source

2.10.1

  • (chore) mark as compatible with Svelte 4
dummdidumm
published 2.10.0 •

Changelog

Source

2.10.0

  • (feat) support requirePragma and insertPragma options (#350)
  • (feat) support <svelte:document>
  • (feat) trim whitespace in class attributes (#339)
  • (feat) allow multiple comments atop of script/style tags (#291)
  • (fix) handle script/style attributes without quotes (#344)
dummdidumm
published 2.9.0 •

Changelog

Source

2.9.0

  • (feat) support style modifiers (#330)
  • (fix) respect strict mode and shorthand options when formatting style/class directives (#328)
dummdidumm
published 2.8.1 •

Changelog

Source

2.8.1

  • (fix) format {#await .. catch ..}..{/await} correctly (#323)
  • (fix) respect strict mode and shorthand options when formatting bindings (#321)
dummdidumm
published 2.8.0 •

Changelog

Source

2.8.0

  • (feat) support singleAttributePerLine Prettier option (#305)
  • (feat) add svelteSortOrder: none Prettier option which skips reordering scripts/styles/html (#305)
dummdidumm
published 2.7.1 •

Changelog

Source

2.7.1

  • (fix) check for snipped content in JS expressions (#290)
  • (fix) handle <!DOCTYPE> (#298)
conduitry
published 2.7.0 •

Changelog

Source

2.7.0

  • (feat) Support <svelte:element> (#285)
  • (fix) Respect htmlWhitespaceSensitivity: 'ignore' setting in components (#281)
conduitry
published 2.6.0 •

Changelog

Source

2.6.0

  • (feat) Support {@const} tag (#272)
  • (feat) Support style: directive (requires Svelte 3.46.1 or later) (#274)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc