From b9bdc55b38b8f2f43080e6bb88b6d1ff1306277f Mon Sep 17 00:00:00 2001 From: ChaotiCryptidz Date: Fri, 21 Jan 2022 22:27:31 +0000 Subject: [PATCH] change default yaml dump settings --- src/utils/dataInterchange.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/dataInterchange.ts b/src/utils/dataInterchange.ts index d05d288..f5f8f9f 100644 --- a/src/utils/dataInterchange.ts +++ b/src/utils/dataInterchange.ts @@ -33,6 +33,10 @@ export function dumpData(data: Record, space = 4, syntax = "jso } else if (syntax == "json5") { return JSON5.stringify(data, null, space); } else if (syntax == "yaml") { - return yaml.dump(data, { indent: space }); + return yaml.dump(data, { + indent: space, + quotingType: "\"", + forceQuotes: true + }); } }