-
Notifications
You must be signed in to change notification settings - Fork 114
/
Copy path.prettierrc.cjs
36 lines (34 loc) · 971 Bytes
/
.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
"use strict";
module.exports = {
plugins: ["@trivago/prettier-plugin-sort-imports", "prettier-plugin-tailwindcss"],
printWidth: 120,
tabWidth: 2,
useTabs: false,
semi: true,
singleQuote: false,
quoteProps: "consistent",
jsxSingleQuote: true,
trailingComma: "all",
bracketSpacing: true,
jsxBracketSameLine: false,
arrowParens: "always",
proseWrap: "preserve",
htmlWhitespaceSensitivity: "css",
endOfLine: "lf",
embeddedLanguageFormatting: "auto",
singleAttributePerLine: true,
tailwindAttributes: ["classNames", "wrapperClassName", "rootClassName"],
tailwindFunctions: ["twsx", "cn"],
tailwindConfig: "./tailwind.config.ts",
importOrder: [
"<THIRD_PARTY_MODULES>",
"^~/(app|components)/(.*)$",
"^~/(utils|hooks|context|lib)/(.*)$",
"^~/types/(.*)$",
"^~/(config|styles|actions|constant)/(.*)$",
"^(config|actions)$",
"^[./]",
],
importOrderSeparation: true,
importOrderSortSpecifiers: true,
};