mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-09 07:35:01 -04:00
Removed unused format options
This commit is contained in:
parent
3a13b79572
commit
84934504c7
2 changed files with 3 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue