1 | import { Config } from 'prettier';
|
2 |
|
3 | export interface PluginConfig {
|
4 | svelteSortOrder?: SortOrder;
|
5 | svelteStrictMode?: boolean;
|
6 | svelteBracketNewLine?: boolean;
|
7 | svelteAllowShorthand?: boolean;
|
8 | svelteIndentScriptAndStyle?: boolean;
|
9 | svelte5CompilerPath?: string;
|
10 | }
|
11 |
|
12 | export type PrettierConfig = PluginConfig & Config;
|
13 |
|
14 | type SortOrder =
|
15 | | 'options-scripts-markup-styles'
|
16 | | 'options-scripts-styles-markup'
|
17 | | 'options-markup-styles-scripts'
|
18 | | 'options-markup-scripts-styles'
|
19 | | 'options-styles-markup-scripts'
|
20 | | 'options-styles-scripts-markup'
|
21 | | 'scripts-options-markup-styles'
|
22 | | 'scripts-options-styles-markup'
|
23 | | 'markup-options-styles-scripts'
|
24 | | 'markup-options-scripts-styles'
|
25 | | 'styles-options-markup-scripts'
|
26 | | 'styles-options-scripts-markup'
|
27 | | 'scripts-markup-options-styles'
|
28 | | 'scripts-styles-options-markup'
|
29 | | 'markup-styles-options-scripts'
|
30 | | 'markup-scripts-options-styles'
|
31 | | 'styles-markup-options-scripts'
|
32 | | 'styles-scripts-options-markup'
|
33 | | 'scripts-markup-styles-options'
|
34 | | 'scripts-styles-markup-options'
|
35 | | 'markup-styles-scripts-options'
|
36 | | 'markup-scripts-styles-options'
|
37 | | 'styles-markup-scripts-options'
|
38 | | 'styles-scripts-markup-options'
|
39 | | 'none';
|