-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprettier.config.js
More file actions
28 lines (27 loc) · 911 Bytes
/
prettier.config.js
File metadata and controls
28 lines (27 loc) · 911 Bytes
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
/** @typedef {import("@ianvs/prettier-plugin-sort-imports").PluginConfig} SortImportsConfig*/
/** @typedef {import("prettier").Config} PrettierConfig*/
/** @typedef {{ tailwindConfig: string }} TailwindConfig*/
/** @type { PrettierConfig | SortImportsConfig | TailwindConfig } */
export default {
printWidth: 80,
trailingComma: 'all',
endOfLine: 'auto',
singleQuote: true,
importOrder: [
// Ensure test helpers are sorted first so that polyfills are loaded
'___',
'__',
'^@trpc/(server|client|react-query|tanstack-react-query|next)/src/__tests__(.*)$',
'<THIRD_PARTY_MODULES>',
'^[./]',
],
importOrderParserPlugins: ['typescript', 'jsx', 'explicitResourceManagement'],
tailwindConfig: './www/tailwind.config.ts',
plugins: [
'@ianvs/prettier-plugin-sort-imports',
/**
* Tailwind plugin must come last!
*/
'prettier-plugin-tailwindcss',
],
};