docs(ComponentCode): update prettier config

This commit is contained in:
Benjamin Canac
2024-07-17 16:39:09 +02:00
parent 59b3873c73
commit df6e2a6378
3 changed files with 9 additions and 8 deletions

View File

@@ -127,7 +127,7 @@ const code = computed(() => {
const { data: ast } = await useAsyncData(`component-code-${name}-${JSON.stringify({ props: componentProps, slots: props.slots })}`, async () => {
let formatted = ''
try {
formatted = await $prettier.format(code.value)
formatted = await $prettier.format(code.value, { trailingComma: 'none', vueIndentScriptAndStyle: true })
} catch (e) {
formatted = code.value
}