generated from lukeshay/next-tailwind-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.prettierrc.cjs
44 lines (43 loc) · 871 Bytes
/
.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
const config = {
arrowParens: "always",
bracketSameLine: false,
bracketSpacing: true,
embeddedLanguageFormatting: "auto",
endOfLine: "lf",
htmlWhitespaceSensitivity: "css",
insertPragma: false,
jsxSingleQuote: false,
overrides: [
{
files: ["**/.{yml,yaml}"],
options: {
tabWidth: 4,
},
},
{
files: ["**/package.json"],
plugins: ["prettier-plugin-packagejson"],
},
{
files: ["**/*.astro"],
options: {
parser: "astro",
},
},
],
plugins: ["prettier-plugin-tailwindcss", "prettier-plugin-astro"],
printWidth: 80,
proseWrap: "preserve",
quoteProps: "as-needed",
rangeEnd: Number.POSITIVE_INFINITY,
rangeStart: 0,
requirePragma: false,
semi: false,
singleAttributePerLine: false,
singleQuote: false,
tabWidth: 2,
trailingComma: "all",
useTabs: true,
vueIndentScriptAndStyle: false,
}
module.exports = config