-
-
Notifications
You must be signed in to change notification settings - Fork 46
/
prettier.config.js
36 lines (35 loc) · 891 Bytes
/
prettier.config.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
/** @type {import('prettier').Config & import('prettier-plugin-tailwindcss').PluginOptions} */
const config = {
singleQuote: false,
bracketSpacing: true,
jsxSingleQuote: false,
bracketSameLine: false,
trailingComma: "es5",
semi: true,
printWidth: 100,
arrowParens: "always",
endOfLine: "auto",
importOrder: [
// Mocks must be at the top as they contain vi.mock calls
"(.*)/__mocks__/(.*)",
"^(react/(.*)$)|^(react$)",
"^(next/(.*)$)|^(next$)",
"<THIRD_PARTY_MODULES>",
"^(@/components/(.*)$)",
"^(@/hooks/(.*)$)",
"^(@/utils/(.*)$)",
"^(@/lib/(.*)$)",
"^(@/styles/(.*)$)",
"^(@/assets/(.*)$)",
"^(@/types/(.*)$)",
"^(@/(.*)$)",
"^~/(.*)$",
"^[./]",
],
importOrderSeparation: false,
plugins: [
"@trivago/prettier-plugin-sort-imports",
"prettier-plugin-tailwindcss",
],
};
export default config;