mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
docs(ComponentCode): update prettier options
This commit is contained in:
@@ -129,7 +129,11 @@ 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, { trailingComma: 'none', vueIndentScriptAndStyle: true })
|
||||
formatted = await $prettier.format(code.value, {
|
||||
trailingComma: 'none',
|
||||
semi: false,
|
||||
singleQuote: true
|
||||
})
|
||||
} catch (e) {
|
||||
formatted = code.value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user