-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathprettier.config.mjs
More file actions
50 lines (48 loc) · 1.1 KB
/
Copy pathprettier.config.mjs
File metadata and controls
50 lines (48 loc) · 1.1 KB
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
45
46
47
48
49
50
/**
* @type {
* import('prettier').Config
* & import('prettier-plugin-tailwindcss').PluginOptions
* & import('@ianvs/prettier-plugin-sort-imports').PluginConfig
* }
* */
const config = {
endOfLine: "lf",
semi: true,
singleQuote: false,
tabWidth: 2,
trailingComma: "es5",
plugins: [
"@ianvs/prettier-plugin-sort-imports",
"prettier-plugin-tailwindcss",
],
/* @ianvs/prettier-plugin-sort-imports */
importOrder: [
"^(react/(.*)$)|^(react$)",
"^(next/(.*)$)|^(next$)",
"",
"<BUILTIN_MODULES>",
"<THIRD_PARTY_MODULES>",
"",
"^@/hooks/(.*)$",
"^@/lib/(.*)$",
"^@/(.*)$",
"",
"^@/components/typography/(.*)$",
"^@/components/ui/(.*)$",
"^@/components/(.*)$",
"",
"^(lucide-react/(.*)$)|^(lucide-react$)",
"",
"^types$",
"^@/types/(.*)$",
"<TYPES>",
"",
"^[./]",
],
importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"],
importOrderTypeScriptVersion: "5.0.0",
importOrderCaseSensitive: false,
importOrderSeparation: true,
importOrderSortSpecifiers: true,
};
export default config;