-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprettier.config.js
38 lines (36 loc) · 1.02 KB
/
prettier.config.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
module.exports = {
semi: false,
endOfLine: 'auto',
trailingComma: 'es5',
arrowParens: 'always',
quoteProps: 'as-needed',
bracketSameLine: false,
jsxSingleQuote: false,
bracketSpacing: true,
singleQuote: true,
printWidth: 100,
useTabs: false,
tabWidth: 2,
importOrder: [
'^(react/(.*)$)|^(react$)',
'^@(server|trpc)/(.*)$',
'<THIRD_PARTY_MODULES>',
'^@/(configs|libs)(.*)$',
'^@/(redux|router)(.*)$',
'^@/(constants|hooks|assets)(.*)$',
'^@/(components)(.*)$',
'^@/(layouts|contexts)(.*)$',
'^@/(pages|views|containers)(.*)$',
'^@/(utils/helper)(.*)$',
'^@/(utils/validators)(.*)$',
'^@/(.*)$',
'^[./]',
],
importOrderSeparation: true,
importOrderSortSpecifiers: true,
importOrderBuiltinModulesToTop: true,
importOrderMergeDuplicateImports: true,
importOrderCombineTypeAndValueImports: true,
importOrderParserPlugins: ['typescript', 'jsx', 'decorators-legacy'],
plugins: ['@trivago/prettier-plugin-sort-imports', 'prettier-plugin-tailwindcss'],
}