-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support YAML formatting #736
Comments
+1 on this request 🙏 |
- prettier 3.0 formatting has degraded in quality for js-like files, but the team refuses to fix it - prettier can be removed completely once dprint has its own yaml plugin - prettier formatting markdown was always subpar; it never played nicely with markdownlint - prettier/prettier#15358 - prettier/prettier#5715 - prettier/prettier#11881 - dprint/dprint#736 - dprint/dprint-plugin-typescript#432 Signed-off-by: Lexus Drumgold <[email protected]>
- prettier 3.0 formatting has degraded in quality for js-like files, but the team refuses to fix it - prettier can be removed completely once dprint has its own yaml plugin - prettier formatting markdown was always subpar; it never played nicely with markdownlint - prettier/prettier#15358 - prettier/prettier#5715 - prettier/prettier#11881 - dprint/dprint#736 - dprint/dprint-plugin-typescript#432 Signed-off-by: Lexus Drumgold <[email protected]>
- prettier 3.0 formatting has degraded in quality for js-like files, but the team refuses to fix it - prettier can be removed completely once dprint has its own yaml plugin - prettier formatting markdown was always subpar; it never played nicely with markdownlint - prettier/prettier#15358 - prettier/prettier#5715 - prettier/prettier#11881 - dprint/dprint#736 - dprint/dprint-plugin-typescript#432 Signed-off-by: Lexus Drumgold <[email protected]>
- prettier 3.0 formatting has degraded in quality for js-like files, but the team refuses to fix it - prettier can be removed completely once dprint has its own yaml plugin + better json5 support - prettier markdown formatting was always subpar; it never played nicely with markdownlint - prettier/prettier#15358 - prettier/prettier#5715 - prettier/prettier#11881 - dprint/dprint#736 - dprint/dprint-plugin-typescript#432 Signed-off-by: Lexus Drumgold <[email protected]>
This blocks us from moving fully from prettier to dprint in a project. |
In the meantime, we are using the following workaround based on dprint-plugin-exec: {
"exec": {
"commands": [{
"command": "sh -c \"yamlfmt {{file_path}} && cat {{file_path}}\"",
"exts": ["yml", "yaml"]
}]
},
"plugins": [
"https://plugins.dprint.dev/exec-0.4.4.json"
]
} |
Biome has begun working on YAML support. If that is done, we may be able to add YAML support by modifying dprint-plugin-biome. |
Hey guys, you don't need to wait for Biome. I made a dprint plugin that can format YAML: https://github.com/g-plane/pretty_yaml . It's WebAssembly-based, no external process needed. Just run: dprint config add g-plane/pretty_yaml to install it. |
Hey,
It would be great if dprint will support yaml formatting.
There's a good lib in Go for it - https://github.com/google/yamlfmt
The text was updated successfully, but these errors were encountered: