-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.prettierrc.js
More file actions
29 lines (27 loc) · 648 Bytes
/
.prettierrc.js
File metadata and controls
29 lines (27 loc) · 648 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
'use strict'
/**
* @type {import('prettier').Config & Record<string, any>}
*/
const config = {
plugins: [require.resolve('prettier-plugin-jsdoc')],
useTabs: false,
arrowParens: 'avoid',
bracketSameLine: false,
bracketSpacing: true,
embeddedLanguageFormatting: 'auto',
endOfLine: 'auto',
htmlWhitespaceSensitivity: 'css',
insertPragma: false,
jsxSingleQuote: true,
printWidth: 80,
proseWrap: 'preserve',
quoteProps: 'as-needed',
semi: false,
singleAttributePerLine: false,
singleQuote: true,
trailingComma: 'es5',
tabWidth: 2,
tsdoc: true,
jsdocCommentLineStrategy: 'multiline',
}
module.exports = config