-
Notifications
You must be signed in to change notification settings - Fork 0
/
.prettierrc.json5
51 lines (49 loc) · 1.4 KB
/
.prettierrc.json5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
plugins: ["@prettier/plugin-pug", "prettier-plugin-svelte"],
overrides: [
{
files: "*.svelte",
options: {
parser: "svelte",
},
},
],
arrowParens: "always",
bracketSpacing: true,
bracketSameLine: true, // changed from false to true
embeddedLanguageFormatting: "auto", // fails with "off"
htmlWhitespaceSensitivity: "strict",
printWidth: 80,
quoteProps: "consistent",
semi: true,
singleQuote: false,
singleAttributePerLine: true,
tabWidth: 2,
trailingComma: "all",
useTabs: true,
vueIndentScriptAndStyle: true, // added
// prettier pug plugin options
// https://prettier.github.io/plugin-pug/guide/pug-specific-options.html
// https://prettier.github.io/plugin-pug/guide/standard-prettier-overrides.html
pugArrowParens: "always",
pugAttributeSeparator: "always",
pugClassLocation: "before-attributes",
pugClassNotation: "as-is",
pugCommentPreserveSpaces: "keep-all",
pugEmptyAttributes: "as-is",
pugExplicitDiv: false,
pugFramework: "svelte",
pugIdNotation: "as-is",
pugPrintWidth: 80,
// pugSingleFileComponentIndentation: false,
pugSortAttributes: "asc",
pugSortAttributesBeginning: ["(class)"],
pugTabWidth: 2,
pugWrapAttributesPattern: "[a-zA-Z]+",
pugWrapAttributesThreshold: 0,
// prettier svelte plugin options
// https://github.com/sveltejs/prettier-plugin-svelte
svelteStrictMode: true,
svelteAllowShorthand: true,
svelteIndentScriptAndStyle: true, // added
}