-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.prettierrc.js
38 lines (38 loc) · 970 Bytes
/
.prettierrc.js
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
// https://prettier.io/docs/en/options.html
module.exports = {
printWidth: 80,
tabWidth: 2,
useTabs: false,
semi: false,
singleQuote: false,
quoteProps: "consistent",
jsxSingleQuote: false,
trailingComma: "all",
bracketSpacing: true,
bracketSameLine: false,
arrowParens: "always",
requirePragma: false,
insertPragma: false,
proseWrap: "preserve",
htmlWhitespaceSensitivity: "css",
vueIndentScriptAndStyle: false,
endOfLine: "lf",
embeddedLanguageFormatting: "auto",
overrides: [
{
files: [
".commitlintrc.js",
".eslintrc.js",
".lintstagedrc.mjs",
".prettierrc.js",
".stylelintrc.js",
"tsconfig.json",
"vite.config.ts",
],
options: {
tabWidth: 4,
quoteProps: "as-needed",
},
},
],
}