-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathprettier.config.mjs
More file actions
36 lines (35 loc) · 927 Bytes
/
prettier.config.mjs
File metadata and controls
36 lines (35 loc) · 927 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
/**
* Shared formatting policy for the root workspace.
*
* Keep this conservative: it mirrors the existing web-next settings while
* making Tailwind class ordering available from the root.
*
* @type {import("prettier").Config}
*/
const config = {
endOfLine: "lf",
semi: false,
singleQuote: false,
tabWidth: 2,
trailingComma: "es5",
printWidth: 80,
plugins: ["prettier-plugin-tailwindcss"],
tailwindFunctions: ["cn", "cva"],
tailwindStylesheet: "./packages/web-next/app/globals.css",
overrides: [
{
files: "packages/web-next/**/*.{js,jsx,ts,tsx,css}",
options: {
tailwindStylesheet: "./packages/web-next/app/globals.css",
},
},
{
files: "relay/cmd/synapse-relay-gui/frontend/**/*.{js,jsx,ts,tsx,css}",
options: {
tailwindStylesheet:
"./relay/cmd/synapse-relay-gui/frontend/src/app.css",
},
},
],
}
export default config