-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprettier.config.mjs
More file actions
32 lines (30 loc) · 816 Bytes
/
Copy pathprettier.config.mjs
File metadata and controls
32 lines (30 loc) · 816 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
29
30
31
32
/** @type {import('prettier').Config} */
export default {
plugins: ['@ianvs/prettier-plugin-sort-imports', 'prettier-plugin-tailwindcss'],
bracketSameLine: true,
jsxSingleQuote: true,
printWidth: 100,
semi: false,
singleQuote: true,
tabWidth: 2,
trailingComma: 'es5',
useTabs: false,
importOrder: [
'^(react/(.*)$)|^(react$)',
'^(next/(.*)$)|^(next$)',
'<THIRD_PARTY_MODULES>',
'',
'^~/server/(.*)$',
'^~/app/(.*)$',
'^~/components/(.*)$',
'^~/(.*)$',
'^~/utils/(.*)$',
'^[./]',
],
importOrderBuiltinModulesToTop: true,
importOrderCombineTypeAndValueImports: true,
importOrderMergeDuplicateImports: true,
importOrderParserPlugins: ['typescript', 'jsx', 'decorators-legacy'],
importOrderSeparation: false,
importOrderSortSpecifiers: true,
}