/sveltejs_prettier-plugin-svelte

Format your svelte components using prettier.

Primary LanguageTypeScript

Prettier for Svelte components

Format your svelte components using prettier.

Features

  • Format your html, css, and javascript using prettier
  • Format Svelte syntax, e.g. each loops, if statements, await blocks, etc.
  • Format the javascript expressions embedded in the svelte syntax
    • e.g. expressions inside of {}, event bindings on:click="", and more

How to use

Choose one of:
  1. Install prettier-plugin-svelte and prettier should pick it up from your node_modules folder
  2. If you're using VS Code, it is embedded in the svelte vs code plugin
  3. If you're using Atom, it is embedded in the svelte atom plugin