File size: 663 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/** @type {import('prettier').Config} */
const config = {
	endOfLine: "lf",
	printWidth: 120,
	semi: true,
	singleQuote: false,
	tabWidth: 2,
	trailingComma: "es5",
	useTabs: true,
	importOrder: [
		"^node:$",
		"",
		"^(react/(.*)$)|^(react$)",
		"^(next/(.*)$)|^(next$)",
		"<THIRD_PARTY_MODULES>",
		"",
		"^@/types$",
		"^@/types/(.*)$",
		"^@/config$",
		"^@/config/(.*)$",
		"^@/paths$",
		"^@/data/(.*)$",
		"^@/lib/(.*)$",
		"^@/locales/(.*)$",
		"^@/actions/(.*)$",
		"^@/contexts/(.*)$",
		"^@/hooks/(.*)$",
		"^@/components/(.*)$",
		"^@/styles/(.*)$",
		"",
		"^[./]",
	],
	plugins: ["@ianvs/prettier-plugin-sort-imports"],
};

export default config;