-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.prettierrc.js
46 lines (42 loc) · 1.11 KB
/
.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
37
38
39
40
41
42
43
44
45
46
// @ts-check
/** @type {import("@ianvs/prettier-plugin-sort-imports").PrettierConfig} */
module.exports = {
printWidth: 80,
singleQuote: true,
semi: true,
trailingComma: 'all',
quoteProps: 'as-needed',
jsxSingleQuote: false,
arrowParens: 'avoid',
htmlWhitespaceSensitivity: 'ignore',
importOrder: [
'^(react/(.*)$)|^(react-(.*)$)|^(react$)',
'^(next/(.*)$)|^(next-(.*)$)|^(next$)',
'<THIRD_PARTY_MODULES>',
'',
'^types$',
'^@/types/(.*)$',
'^@/config/(.*)$',
'^@/router/(.*)$',
'^@/context/(.*)$',
'^@/lib/(.*)$',
'^@/hooks/(.*)$',
'^@/components/ui/(.*)$',
'^@/components/(.*)$',
'^@/assets/(.*)$',
'^@/styles/(.*)$',
'^@/app/(.*)$',
'',
'^[./]',
],
importOrderSeparation: true,
importOrderSortSpecifiers: true,
importOrderParserPlugins: ['typescript', 'jsx', 'decorators-legacy'],
tailwindConfig: './apps/app/tailwind.config.js',
tailwindFunctions: ['clsx', 'cva', 'tw'],
plugins: [
'@ianvs/prettier-plugin-sort-imports',
'prettier-plugin-tailwindcss',
],
pluginSearchDirs: false, // needed for tailwindcss plugin
};