-
Notifications
You must be signed in to change notification settings - Fork 0
/
.prettierrc.cjs
50 lines (50 loc) · 1.17 KB
/
.prettierrc.cjs
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
47
48
49
50
/**
* Remember to restart VSCode after making
* any changes here and saving this file.
*/
module.exports = {
arrowParens: 'always',
quoteProps: 'preserve',
bracketSameLine: false,
endOfLine: "lf",
importOrder: [
"^express$",
'',
'<THIRD_PARTY_MODULES>',
'',
'^@/config/(.*)$',
'',
'^@/cloud/functions(.*)$',
'^@/cloud/services(.*)$',
'^@/cloud/triggers(.*)$',
'^@/cloud/utils(.*)$',
'',
'^@/controllers/(.*)$',
'^@/routes/(.*)$',
'^@/services/(.*)$',
'^@/utils/(.*)$',
'^@/validations/(.*)$',
'',
'^@/types/(.*)$',
'',
'^[./]',
'',
],
importOrderParserPlugins: ['typescript', 'decorators-legacy'],
plugins: [
'@ianvs/prettier-plugin-sort-imports',
],
printWidth: 80,
semi: true,
singleQuote: true,
tabWidth: 2,
trailingComma: 'all',
useTabs: false,
importOrderSeparation: true,
importOrderCaseInsensitive: true,
importOrderGroupNamespaceSpecifiers: true,
importOrderParserPlugins : ["flow", "[\"decorators\", { \"decoratorsBeforeExport\": true }]"],
importOrderMergeDuplicateImports: true,
importOrderCombineTypeAndValueImports: true,
decoratorsBeforeExport: true
};