Pretty YAML is a semi-tolerant and configurable YAML formatter.
We've provided dprint integration.
Run the command below to add plugin:
dprint config add g-plane/pretty_yamlAfter adding the dprint plugin, update your dprint.json and add configuration:
You can also read dprint CLI documentation for using dprint to format files.
Please refer to Configuration.
The formatter can be used in Rust. Please read the documentation.
If you want to use the underlying parser, please refer to the documentation.
Tests come from Prettier.
MIT License
Copyright (c) 2024-present Pig Fang
{ // ... "yaml": { // <-- the key name here is "yaml", not "pretty_yaml" // Pretty YAML config comes here }, "plugins": [ "https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.1.wasm" ] }