-
Notifications
You must be signed in to change notification settings - Fork 0
/
.prettierrc.js
38 lines (37 loc) · 976 Bytes
/
.prettierrc.js
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
module.exports = {
singleQuote: false, // Use double quotes for strings
trailingComma: "all", // Add trailing commas (optional)
semi: true, // Add semicolons (optional)
tabWidth: 2,
useTabs: true,
overrides: [
{
files: "*.js", // Include JavaScript files
options: {
// Your specific configuration for JavaScript files
// In this case, adding a space before and after functions
parser: "typescript",
semi: true,
tabWidth: 2,
printWidth: 120,
singleQuote: false, // Use double quotes for strings
trailingComma: "all",
useTabs: true,
},
},
{
files: "*.ts", // Include TypeScript files
options: {
// Your specific configuration for TypeScript files
// In this case, adding a space before and after functions
parser: "typescript",
semi: true,
tabWidth: 2,
printWidth: 120,
singleQuote: false, // Use double quotes for strings
trailingComma: "all",
useTabs: true,
},
},
],
};