2022-03-09 17:52:48 +00:00
|
|
|
module.exports = {
|
|
|
|
bracketSpacing: true,
|
|
|
|
bracketSameLine: true,
|
|
|
|
singleQuote: false,
|
|
|
|
jsxSingleQuote: false,
|
|
|
|
trailingComma: "es5",
|
|
|
|
semi: true,
|
|
|
|
printWidth: 110,
|
|
|
|
arrowParens: "always",
|
2023-10-11 23:14:22 +00:00
|
|
|
endOfLine: "auto",
|
2022-04-20 18:37:03 +00:00
|
|
|
importOrder: [
|
2023-09-14 06:58:08 +00:00
|
|
|
// Mocks must be at the top as they contain vi.mock calls
|
|
|
|
"(.*)/__mocks__/(.*)",
|
|
|
|
"<THIRD_PARTY_MODULES>",
|
2022-04-20 18:37:03 +00:00
|
|
|
"^@(calcom|ee)/(.*)$",
|
|
|
|
"^@lib/(.*)$",
|
|
|
|
"^@components/(.*)$",
|
|
|
|
"^@(server|trpc)/(.*)$",
|
|
|
|
"^~/(.*)$",
|
|
|
|
"^[./]",
|
|
|
|
],
|
2022-03-09 17:52:48 +00:00
|
|
|
importOrderSeparation: true,
|
2023-03-28 06:00:02 +00:00
|
|
|
plugins: [
|
|
|
|
"@trivago/prettier-plugin-sort-imports",
|
|
|
|
/**
|
|
|
|
* **NOTE** tailwind plugin must come last!
|
|
|
|
* @see https://github.com/tailwindlabs/prettier-plugin-tailwindcss#compatibility-with-other-prettier-plugins
|
|
|
|
*/
|
|
|
|
"prettier-plugin-tailwindcss",
|
|
|
|
],
|
2022-11-22 19:03:45 +00:00
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ["apps/website/lib/utils/wordlist/wordlist.ts"],
|
|
|
|
options: {
|
|
|
|
quoteProps: "consistent",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2022-03-09 17:52:48 +00:00
|
|
|
};
|