change default yaml dump settings
This commit is contained in:
parent
e2042747b8
commit
b9bdc55b38
|
@ -33,6 +33,10 @@ export function dumpData(data: Record<string, unknown>, space = 4, syntax = "jso
|
||||||
} else if (syntax == "json5") {
|
} else if (syntax == "json5") {
|
||||||
return JSON5.stringify(data, null, space);
|
return JSON5.stringify(data, null, space);
|
||||||
} else if (syntax == "yaml") {
|
} else if (syntax == "yaml") {
|
||||||
return yaml.dump(data, { indent: space });
|
return yaml.dump(data, {
|
||||||
|
indent: space,
|
||||||
|
quotingType: "\"",
|
||||||
|
forceQuotes: true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue