-
Notifications
You must be signed in to change notification settings - Fork 15
/
.prettierrc.cjs
65 lines (60 loc) · 1.77 KB
/
.prettierrc.cjs
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
module.exports = {
trailingComma: "es5",
tabWidth: 4,
semi: true,
printWidth: 90,
useTabs: false,
singleQuote: false,
quoteProps: "consistent",
// htmlWhitespaceSensitivity: "ignore",
overrides: [
{
files: ["*.svelte", "*.set"],
options: {
printWidth: 90,
svelteSortOrder: "scripts-markup-options-styles",
svelteStrictMode: false,
svelteBracketNewLine: false,
svelteAllowShorthand: false,
svelteIndentScriptAndStyle: false,
},
},
{
files: "*.vue",
options: {
parser: "vue",
},
},
{
files: "*.pug",
options: {
parser: "vue",
pugTabWidth: 8,
pugPrintWidth: 90,
pugSingleFileComponentIndentation: false,
pugWrapAttributesThreshold: 3,
pugClassNotation: "as-is",
pugWrapAttributesPattern: "^v-(if|else|for)",
pugSortAttributes: "asc",
pugClosingBracketPosition: "last-line",
},
},
{
files: "*.cjs",
options: {
parser: "babel",
},
},
{
files: ["*.html", "legacy/**/*.js", "*.css", "*.scss"],
options: {
tabWidth: 4,
},
},
],
};
/*-------------------------------------------------------- references ---;
https://github.com/prettier/plugin-pug
https://github.com/sveltejs/prettier-plugin-svelte#options
https://prettier.io/docs/en/options.html#parser
/*----------------------------------------------------------------------*/