-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.prettierrc.js
More file actions
46 lines (44 loc) · 984 Bytes
/
.prettierrc.js
File metadata and controls
46 lines (44 loc) · 984 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// @ts-check
/** @type {import('prettier').Options} */
const config = {
printWidth: 120,
tabWidth: 4,
useTabs: false,
singleQuote: true,
trailingComma: 'none',
htmlWhitespaceSensitivity: 'ignore',
plugins: [
'prettier-plugin-organize-imports',
// should be last
'prettier-plugin-multiline-arrays'
],
overrides: [
{
files: ['*.yml'],
options: {
tabWidth: 2
}
},
{
files: ['*.xml'],
options: {
parser: 'xml',
plugins: ['@prettier/plugin-xml']
}
},
{
files: ['*.html'],
excludeFiles: ['index.html'],
options: {
parser: 'angular'
}
},
{
files: ['llms.txt'],
options: {
parser: 'markdown'
}
}
]
};
module.exports = config;