-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprettier.config.mjs
More file actions
41 lines (38 loc) · 872 Bytes
/
prettier.config.mjs
File metadata and controls
41 lines (38 loc) · 872 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
// @ts-check
// prettier.config.js, .prettierrc.js, prettier.config.mjs, or .prettierrc.mjs
/**
* @see https://prettier.io/docs/en/configuration.html
* @type {import("prettier").Config}
*/
const config = {
singleQuote: false,
semi: true,
bracketSpacing: true,
tabWidth: 4,
trailingComma: "all",
printWidth: 130,
overrides: [
{
files: ["*.md"],
options: {
tabWidth: 4,
printWidth: 150,
semi: false,
},
},
{
files: ["*.yml", "*.yaml"],
options: {
tabWidth: 2,
printWidth: 100,
},
},
{
files: ["*.jsonc", "*.json"],
options: {
trailingComma: "none",
},
},
],
};
export default config;