-
Notifications
You must be signed in to change notification settings - Fork 0
/
.prettierrc.cjs
44 lines (43 loc) · 1.08 KB
/
.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
/** @type {import('prettier').Config & import('@trivago/prettier-plugin-sort-imports').PluginConfig} */
const config = {
plugins: ["prettier-plugin-tailwindcss", "@trivago/prettier-plugin-sort-imports"],
printWidth: 120,
tabWidth: 4,
useTabs: false,
trailingComma: "all",
singleQuote: true,
vueIndentScriptAndStyle: true,
jsxSingleQuote: false,
quoteProps: "as-needed",
semi: true,
endOfLine: "lf",
jsxBracketSameLine: false,
htmlWhitespaceSensitivity: "strict",
rangeStart: 0,
bracketSpacing: true,
arrowParens: "always",
insertPragma: false,
requirePragma: false,
proseWrap: "never",
importOrderSeparation: true,
importOrderSortSpecifiers: true,
importOrder: [
"^react",
"^next",
"<THIRD_PARTY_MODULES>",
"highlight.js*",
"@/app/(.*)",
"@/config",
"@/types",
"@/providers",
"@/components/ui/(.*)",
"@/components/(.*)",
"@/utils/(.*)",
"@/.*",
"^./(.*)",
"^../(.*)",
/** Style files are grouped separately and placed at the bottom */
".(css|less|scss|sass|stylus)$",
],
};
module.exports = config;