Skip to content

Commit c313c5b

Browse files
committed
🔧 Improve Prettier config
1 parent ce5664e commit c313c5b

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.prettierrc.json

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,31 @@
55
"semi": false,
66
"singleQuote": true,
77
"arrowParens": "avoid",
8-
"printWidth": 100
8+
"printWidth": 100,
9+
"trailingComma": "es5",
10+
"bracketSameLine": false,
11+
"endOfLine": "auto",
12+
"overrides": [
13+
{
14+
"files": ["**/*.yml", "**/*.yaml"],
15+
"options": {
16+
"parser": "yaml",
17+
"tabWidth": 2,
18+
"useTabs": false
19+
}
20+
},
21+
{
22+
"files": "**/*.ts",
23+
"options": {
24+
"parser": "typescript"
25+
}
26+
},
27+
{
28+
"files": "**/*.svelte",
29+
"options": {
30+
"parser": "svelte",
31+
"plugins": ["prettier-plugin-svelte"]
32+
}
33+
}
34+
]
935
}

0 commit comments

Comments
 (0)