-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.prettierrc.cjs
45 lines (45 loc) · 1.06 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
// Documentation for this file: https://prettier.io/en/configuration.html
module.exports = {
printWidth: 80,
proseWrap: 'preserve',
endOfLine: 'lf',
// Use single quotes instead of double quotes
singleQuote: true,
trailingComma: 'es5',
insertPragma: false,
requirePragma: false,
tabWidth: 2,
useTabs: false,
quoteProps: 'consistent',
jsxSingleQuote: false,
arrowParens: 'avoid',
bracketSameLine: false,
bracketSpacing: true,
embeddedLanguageFormatting: 'auto',
htmlWhitespaceSensitivity: 'css',
semi: true,
overrides: [
{
files: '**/*.{json,jsonc}',
options: {
singleQuote: false,
semi: false,
trailingComma: 'none',
printWidth: 80,
tabWidth: 2,
useTabs: false,
quoteProps: 'as-needed',
bracketSpacing: true,
jsxBracketSameLine: false,
arrowParens: 'avoid',
rangeStart: 0,
rangeEnd: Infinity,
},
},
],
plugins: [
'prettier-plugin-organize-attributes',
'prettier-plugin-packagejson',
'prettier-plugin-sh',
],
};