-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.prettierrc.js
45 lines (43 loc) · 929 Bytes
/
.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
/* eslint-disable import/no-unused-modules */
/**
* @template {import('@types/prettier').RequiredOptions} T
* @param {T} config A generic parameter that flows through to the return type
* @constraint {{import('@types/prettier').RequiredOptions}}
*/
/** @type {import('@types/prettier').RequiredOptions} */
const config = {
plugins: ['prettier-plugin-packagejson', 'prettier-plugin-jsdoc', 'prettier-plugin-prisma'],
printWidth: 110,
tabWidth: 2,
useTabs: true,
semi: false,
singleQuote: true,
quoteProps: 'as-needed',
jsxSingleQuote: true,
trailingComma: 'es5',
bracketSpacing: true,
bracketSameLine: false,
arrowParens: 'always',
endOfLine: 'lf',
overrides: [
{
files: '*.json',
options: {
singleQuote: false,
},
},
{
files: '*.{ts,tsx}',
options: {
tsdoc: true,
},
},
{
files: '*.{yml,yaml}',
options: {
useTabs: false,
},
},
],
}
module.exports = config