prettier-plugin-svelte

  • Version 3.3.3
  • Published
  • 1.5 MB
  • No dependencies
  • MIT license

Install

npm i prettier-plugin-svelte
yarn add prettier-plugin-svelte
pnpm add prettier-plugin-svelte

Overview

Svelte plugin for prettier

Index

Interfaces

interface PluginConfig

interface PluginConfig {}

    property svelte5CompilerPath

    svelte5CompilerPath?: string;

      property svelteAllowShorthand

      svelteAllowShorthand?: boolean;

        property svelteBracketNewLine

        svelteBracketNewLine?: boolean;

          property svelteIndentScriptAndStyle

          svelteIndentScriptAndStyle?: boolean;

            property svelteSortOrder

            svelteSortOrder?: SortOrder;

              property svelteStrictMode

              svelteStrictMode?: boolean;

                Type Aliases

                type PrettierConfig

                type PrettierConfig = PluginConfig & Config;

                  type SortOrder

                  type SortOrder =
                  | 'options-scripts-markup-styles'
                  | 'options-scripts-styles-markup'
                  | 'options-markup-styles-scripts'
                  | 'options-markup-scripts-styles'
                  | 'options-styles-markup-scripts'
                  | 'options-styles-scripts-markup'
                  | 'scripts-options-markup-styles'
                  | 'scripts-options-styles-markup'
                  | 'markup-options-styles-scripts'
                  | 'markup-options-scripts-styles'
                  | 'styles-options-markup-scripts'
                  | 'styles-options-scripts-markup'
                  | 'scripts-markup-options-styles'
                  | 'scripts-styles-options-markup'
                  | 'markup-styles-options-scripts'
                  | 'markup-scripts-options-styles'
                  | 'styles-markup-options-scripts'
                  | 'styles-scripts-options-markup'
                  | 'scripts-markup-styles-options'
                  | 'scripts-styles-markup-options'
                  | 'markup-styles-scripts-options'
                  | 'markup-scripts-styles-options'
                  | 'styles-markup-scripts-options'
                  | 'styles-scripts-markup-options'
                  | 'none';

                    Package Files (1)

                    Dependencies (0)

                    No dependencies.

                    Dev Dependencies (12)

                    Peer Dependencies (2)

                    Badge

                    To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                    You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/prettier-plugin-svelte.

                    • Markdown
                      [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/prettier-plugin-svelte)
                    • HTML
                      <a href="https://www.jsdocs.io/package/prettier-plugin-svelte"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>