-
Notifications
You must be signed in to change notification settings - Fork 0
/
.prettierrc.cjs
executable file
·51 lines (50 loc) · 1.04 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
46
47
48
49
50
51
/**
* @type { import("prettier").Config }
*/
const prettierConfig = {
arrowParens: "always",
bracketSpacing: true,
printWidth: 80,
quoteProps: "as-needed",
semi: true,
singleQuote: false,
useTabs: false,
tabWidth: 4,
trailingComma: "all",
overrides: [
{
files: ["*.ts", "*.tsx"],
options: {
parser: "typescript",
},
},
{
files: ["*.cjs"],
},
{
files: ["**/*.json"],
options: {
trailingComma: "none",
},
},
{
files: ["**/*.json"],
options: {
trailingComma: "none",
},
},
{
files: ["*.yaml", "*.yml"],
options: {
tabWidth: 2,
},
},
{
files: ["package.json", "package-lock.json"],
options: {
tabWidth: 2,
},
},
],
};
module.exports = prettierConfig;