-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprettier.config.mjs
36 lines (35 loc) · 964 Bytes
/
prettier.config.mjs
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
/**
* @type {import("prettier").Config}
*/
const config = {
$schema: "https://json.schemastore.org/prettierrc",
arrowParens: "always",
bracketSameLine: true,
bracketSpacing: false,
endOfLine: "lf",
htmlWhitespaceSensitivity: "ignore",
insertPragma: false,
jsxSingleQuote: false,
printWidth: 100,
proseWrap: "preserve",
quoteProps: "consistent",
requirePragma: false,
semi: true,
singleAttributePerLine: true,
singleQuote: false,
tabWidth: 4,
trailingComma: "none",
useTabs: false,
vueIndentScriptAndStyle: false,
tailwindFunctions: ["tv", "tw"],
overrides: [
{
// For a detailed explanation, see https://github.com/tailwindlabs/prettier-plugin-tailwindcss/issues/214#issuecomment-1725525854
files: ["**/**"],
options: {
plugins: ["prettier-plugin-tailwindcss"]
}
}
]
};
export default config;