fix: disable vue-i18n raw text rule for website app

The website app is a marketing site with no vue-i18n setup, so
the @intlify/vue-i18n/no-raw-text rule incorrectly flags static
strings in SiteFooter.vue. Add an eslint.config.ts override to
disable this rule for apps/website/**/*.vue.
This commit is contained in:
bymyself
2026-03-28 00:58:07 -07:00
parent f5b68da4fb
commit d99b3177d8
2 changed files with 41 additions and 9 deletions

View File

@@ -36,12 +36,36 @@ const columns = [
]
const socials = [
{ label: 'GitHub', href: 'https://github.com/comfyanonymous/ComfyUI', icon: '/icons/social/github.svg' },
{ label: 'Discord', href: 'https://discord.gg/comfyorg', icon: '/icons/social/discord.svg' },
{ label: 'X', href: 'https://x.com/comaboratory', icon: '/icons/social/x.svg' },
{ label: 'Reddit', href: 'https://reddit.com/r/comfyui', icon: '/icons/social/reddit.svg' },
{ label: 'LinkedIn', href: 'https://linkedin.com/company/comfyorg', icon: '/icons/social/linkedin.svg' },
{ label: 'Instagram', href: 'https://instagram.com/comfyorg', icon: '/icons/social/instagram.svg' }
{
label: 'GitHub',
href: 'https://github.com/comfyanonymous/ComfyUI',
icon: '/icons/social/github.svg'
},
{
label: 'Discord',
href: 'https://discord.gg/comfyorg',
icon: '/icons/social/discord.svg'
},
{
label: 'X',
href: 'https://x.com/comaboratory',
icon: '/icons/social/x.svg'
},
{
label: 'Reddit',
href: 'https://reddit.com/r/comfyui',
icon: '/icons/social/reddit.svg'
},
{
label: 'LinkedIn',
href: 'https://linkedin.com/company/comfyorg',
icon: '/icons/social/linkedin.svg'
},
{
label: 'Instagram',
href: 'https://instagram.com/comfyorg',
icon: '/icons/social/instagram.svg'
}
]
</script>
@@ -52,7 +76,7 @@ const socials = [
>
<!-- Brand -->
<div class="lg:col-span-1">
<a href="/" class="text-2xl font-bold italic text-brand-yellow">
<a href="/" class="text-2xl font-bold text-brand-yellow italic">
Comfy
</a>
<p class="mt-4 text-sm text-smoke-700">
@@ -82,7 +106,7 @@ const socials = [
<!-- Bottom bar -->
<div class="border-t border-white/10">
<div
class="mx-auto flex max-w-7xl flex-col items-center justify-between gap-4 px-6 py-6 sm:flex-row"
class="mx-auto flex max-w-7xl flex-col items-center justify-between gap-4 p-6 sm:flex-row"
>
<p class="text-sm text-smoke-700">
&copy; {{ new Date().getFullYear() }} Comfy Org. All rights reserved.
@@ -100,7 +124,7 @@ const socials = [
class="text-smoke-700 transition-colors hover:text-white"
>
<span
class="inline-block h-5 w-5 bg-current"
class="inline-block size-5 bg-current"
:style="{
maskImage: `url(${social.icon})`,
maskSize: 'contain',

View File

@@ -356,6 +356,14 @@ export default defineConfig([
}
},
// The website app is a marketing site with no vue-i18n setup
{
files: ['apps/website/**/*.vue'],
rules: {
'@intlify/vue-i18n/no-raw-text': 'off'
}
},
// i18n import enforcement
// Vue components must use the useI18n() composable, not the global t/d/st/te
{