UNPKG

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