Fixed lint errors

This commit is contained in:
Isaiah 2023-11-27 16:59:56 -05:00
parent 84934504c7
commit 4f69621a9d
4 changed files with 37 additions and 37 deletions

View file

@ -140,7 +140,7 @@ export const toolsByCategory: ToolCategory[] = [
chmodCalculator,
dockerRunToDockerComposeConverter,
xmlFormatter,
yamlViewer
yamlViewer,
],
},
{

View file

@ -1,6 +1,6 @@
import { type MaybeRef, get } from '@vueuse/core';
import yaml from "js-yaml";
import yaml from 'js-yaml';
export { formatYaml };
@ -17,8 +17,8 @@ function formatYaml({
const formattedYAML = yaml.dump(parsedYaml, {
sortKeys: get(sortKeys),
indent: get(indentSize)
indent: get(indentSize),
});
return formattedYAML
return formattedYAML;
}

View file

@ -1,5 +1,5 @@
<script setup lang="ts">
import yaml from 'js-yaml'
import yaml from 'js-yaml';
import { useStorage } from '@vueuse/core';
import { formatYaml } from './yaml-models';
import { withDefaultOnError } from '@/utils/defaults';
@ -12,7 +12,7 @@ const rawYaml = useStorage('yaml-prettify:raw-yaml', '');
const indentSize = useStorage('yaml-prettify:indent-size', 2);
const sortKeys = useStorage('yaml-prettify:sort-keys', false);
const cleanYaml = computed(() => withDefaultOnError(() => formatYaml({ rawYaml: rawYaml, indentSize, sortKeys }), ''));
const cleanYaml = computed(() => withDefaultOnError(() => formatYaml({ rawYaml, indentSize, sortKeys }), ''));
const rawYamlValidation = useValidation({
source: rawYaml,