Removed unused format options

This commit is contained in:
Isaiah 2023-11-27 16:52:12 -05:00
parent 3a13b79572
commit 84934504c7
2 changed files with 3 additions and 6 deletions

View file

@ -1,4 +1,5 @@
import { type MaybeRef, get } from '@vueuse/core';
import yaml from "js-yaml";
export { formatYaml };
@ -10,14 +11,13 @@ function formatYaml({
}: {
rawYaml: MaybeRef<string>
sortKeys?: MaybeRef<boolean>
stripComments?: MaybeRef<boolean>
indentSize?: MaybeRef<number>
}) {
const parsedYaml = yaml.load(get(rawYaml));
const formattedYAML = yaml.dump(parsedYaml, {
indent: get(indentSize),
sortKeys: get(sortKeys)
sortKeys: get(sortKeys),
indent: get(indentSize)
});
return formattedYAML