@kachick/dprint-plugin-kdl
v0.4.2
Published
dprint plugin for KDL formatting using kdl
Maintainers
Readme
dprint-plugin-kdl
KDL formatter as a dprint WASM plugin
Installation
dprint add 'kachick/kdl'Configuration
By default, it formats as KDL 2.0.
{
"kdl": {
}
}If you only format KDL v1 documents, you can use the "kdlVersion" option:
{
"kdl": {
"kdlVersion": "v1"
}
}Mixed v1 and v2 Files
Some famous applications still use KDL v1 for now:
If your repository has mixed versions of KDL files, consider adding a version marker line to the top of your files:
/- kdl-version 1
simplified_ui true/- kdl-version 2
simplified_ui #trueThis version marker is defined as an optional hint in the KDL specification.
When placed on the first line, this plugin formats the file with that version,
even if kdlVersion in dprint.json says otherwise.
