-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.prettierrc.js
36 lines (36 loc) · 875 Bytes
/
.prettierrc.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
module.exports = {
printWidth: 120,
useTabs: true,
semi: true,
singleQuote: true,
quoteProps: 'as-needed',
trailingComma: 'all',
bracketSpacing: true,
arrowParens: 'always',
proseWrap: 'preserve',
endOfLine: 'lf',
plugins: [require.resolve('@ianvs/prettier-plugin-sort-imports'), require.resolve('prettier-plugin-tailwindcss')],
tailwindFunctions: ['clsx', 'cn', 'twMerge', 'twJoin'],
importOrder: [
'<BUILTIN_MODULES>',
'^(react/(.*)$)|^(react$)',
'^(next/(.*)$)|^(next$)',
'',
'<THIRD_PARTY_MODULES>',
'',
'^@/app/(.*)$',
'^@/components/(.*)$',
'^@/config/(.*)$',
'^@/hooks/(.*)$',
'^@/lib/(.*)$',
'^@/public/(.*)$',
'^@/services/(.*)$',
'^@/styles/(.*)$',
'^@/types/(.*)$',
'^@/utils/(.*)$',
'',
'^[./]',
],
importOrderParserPlugins: ['typescript', 'jsx', 'decorators-legacy'],
importOrderTypeScriptVersion: '5.5.4',
};