-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprettier.config.js
More file actions
executable file
·39 lines (39 loc) · 981 Bytes
/
Copy pathprettier.config.js
File metadata and controls
executable file
·39 lines (39 loc) · 981 Bytes
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
/** @type {import('prettier').Config} */
export default {
trailingComma: "none",
tabWidth: 4,
useTabs: false,
semi: true,
singleQuote: false,
printWidth: 480,
arrowParens: "always",
endOfLine: "lf",
bracketSpacing: true,
bracketSameLine: true,
singleAttributePerLine: false,
embeddedLanguageFormatting: "auto",
proseWrap: "preserve",
htmlWhitespaceSensitivity: "css",
overrides: [
{
files: ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.mjs", "**/*.cjs"],
options: {
parser: "typescript"
}
},
{
files: ["**/*.scss", "**/*.css"],
options: {
parser: "scss"
}
},
{
files: ["**/*.json", "**/*.jsonc", "**/*.json5"],
options: {
parser: "json",
printWidth: 1000,
trailingComma: "none"
}
}
]
}