Skip to content

Commit 2da143d

Browse files
committed
Update Prettier settings for YAML
Editors like Zed use Prettier for YAML formatting, but this configuration was meant for JS. GitHub Actions YAML is formatted differently from what Prettier expects but this at least brings us a bit closer. This change doesn't reformat YAML files for now.
1 parent 5304a88 commit 2da143d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.prettierrc

+8
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,12 @@
55
"singleQuote": true,
66
"printWidth": 150,
77
"trailingComma": "es5",
8+
"overrides": [
9+
{
10+
"files": "*.yml",
11+
"options": {
12+
"tabWidth": 2
13+
}
14+
},
15+
]
816
}

0 commit comments

Comments
 (0)