diff --git a/.oxfmtrc.json b/.oxfmtrc.json new file mode 100644 index 00000000000..1242521f9a1 --- /dev/null +++ b/.oxfmtrc.json @@ -0,0 +1,5 @@ +{ + "$schema": "./node_modules/oxfmt/configuration_schema.json", + "ignorePatterns": [], + "embeddedLanguageFormatting": "auto" +} diff --git a/.vitepress/theme/components/AppBlogPostHeader.vue b/.vitepress/theme/components/AppBlogPostHeader.vue index d3f494780e8..dc5a45bd26a 100644 --- a/.vitepress/theme/components/AppBlogPostHeader.vue +++ b/.vitepress/theme/components/AppBlogPostHeader.vue @@ -13,13 +13,14 @@ const authors = computed(() => if (member) { const { avatar, links, name, title } = member; - const { link = "" } = links?.find((link) => link.link.startsWith("https://github.com/")) ?? {}; + const { link = "" } = + links?.find((link) => link.link.startsWith("https://github.com/")) ?? {}; return [{ avatar, link, name, title }]; } return []; - }) + }), ); const date = computed(() => { const filePath = vitePressData.page.value.filePath; @@ -39,7 +40,9 @@ const datetime = ref(""); onMounted(() => { watchEffect(() => { if (date.value) { - datetime.value = new Intl.DateTimeFormat(lang.value, { dateStyle: "long" }).format(date.value); + datetime.value = new Intl.DateTimeFormat(lang.value, { dateStyle: "long" }).format( + date.value, + ); } }); }); @@ -52,7 +55,7 @@ onMounted(() => {