From 989d42c741c4ac22069cafe1d44bfa8b968f0958 Mon Sep 17 00:00:00 2001 From: Taha Date: Fri, 21 Mar 2025 11:15:55 +0300 Subject: [PATCH] chore(lint): fix lint issues --- quartz/plugins/emitters/componentResources.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/quartz/plugins/emitters/componentResources.ts b/quartz/plugins/emitters/componentResources.ts index ef4057cd3..92794ef5e 100644 --- a/quartz/plugins/emitters/componentResources.ts +++ b/quartz/plugins/emitters/componentResources.ts @@ -105,7 +105,7 @@ function addGlobalPageResources(ctx: BuildCtx, componentResources: ComponentReso }; document.head.appendChild(gtagScript); - `); + `) } else if (cfg.analytics?.provider === "plausible") { const plausibleHost = cfg.analytics.host ?? "https://plausible.io" componentResources.afterDOMLoaded.push(` @@ -122,7 +122,7 @@ function addGlobalPageResources(ctx: BuildCtx, componentResources: ComponentReso }; document.head.appendChild(plausibleScript); - `); + `) } else if (cfg.analytics?.provider === "umami") { componentResources.afterDOMLoaded.push(` const umamiScript = document.createElement("script"); @@ -138,15 +138,15 @@ function addGlobalPageResources(ctx: BuildCtx, componentResources: ComponentReso }; document.head.appendChild(umamiScript); - `); + `) } else if (cfg.analytics?.provider === "goatcounter") { componentResources.afterDOMLoaded.push(` const goatcounterScript = document.createElement('script'); - goatcounterScript.src = "${cfg.analytics.scriptSrc ?? 'https://gc.zgo.at/count.js'}"; + goatcounterScript.src = "${cfg.analytics.scriptSrc ?? "https://gc.zgo.at/count.js"}"; goatcounterScript.defer = true; goatcounterScript.setAttribute( 'data-goatcounter', - "https://${cfg.analytics.websiteId}.${cfg.analytics.host ?? 'goatcounter.com'}/count" + "https://${cfg.analytics.websiteId}.${cfg.analytics.host ?? "goatcounter.com"}/count" ); goatcounterScript.onload = () => { window.goatcounter = { no_onload: true }; @@ -157,7 +157,7 @@ function addGlobalPageResources(ctx: BuildCtx, componentResources: ComponentReso }; document.head.appendChild(goatcounterScript); - `); + `) } else if (cfg.analytics?.provider === "posthog") { componentResources.afterDOMLoaded.push(` const posthogScript = document.createElement("script"); @@ -175,7 +175,7 @@ function addGlobalPageResources(ctx: BuildCtx, componentResources: ComponentReso }; document.head.appendChild(posthogScript); - `); + `) } else if (cfg.analytics?.provider === "tinylytics") { const siteId = cfg.analytics.siteId componentResources.afterDOMLoaded.push(`