From f4f13cce8253f414f3fef2eff3cee7f26bbbd28a Mon Sep 17 00:00:00 2001 From: christinaroise Date: Mon, 26 Aug 2024 21:23:17 +0200 Subject: [PATCH] fix lint --- studioShared/env.ts | 4 ++-- studioShared/lib/fetchWithToken.ts | 2 +- studioShared/lib/token.ts | 4 ++-- studioShared/schemas/documents/blogPosts.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/studioShared/env.ts b/studioShared/env.ts index 6e11cd2b5..805821c29 100644 --- a/studioShared/env.ts +++ b/studioShared/env.ts @@ -5,12 +5,12 @@ export const apiVersion = export const dataset = assertValue( process.env.NEXT_PUBLIC_SANITY_SHARED_DATASET, - "Missing environment variable: NEXT_PUBLIC_SANITY_SHARED_DATASET" + "Missing environment variable: NEXT_PUBLIC_SANITY_SHARED_DATASET", ); export const projectId = assertValue( process.env.NEXT_PUBLIC_SANITY_SHARED_PROJECT_ID, - "Missing environment variable: NEXT_PUBLIC_SANITY_SHARED_PROJECT_ID" + "Missing environment variable: NEXT_PUBLIC_SANITY_SHARED_PROJECT_ID", ); export const useCdn = process.env.NODE_ENV === "production"; diff --git a/studioShared/lib/fetchWithToken.ts b/studioShared/lib/fetchWithToken.ts index 33236626d..c101c8b79 100644 --- a/studioShared/lib/fetchWithToken.ts +++ b/studioShared/lib/fetchWithToken.ts @@ -20,7 +20,7 @@ */ export const fetchWithToken = async ( query: string, - params?: Record + params?: Record, ): Promise => { const response = await fetch("/api/fetchData", { method: "POST", diff --git a/studioShared/lib/token.ts b/studioShared/lib/token.ts index 3013bc6c2..24a9ff676 100644 --- a/studioShared/lib/token.ts +++ b/studioShared/lib/token.ts @@ -12,12 +12,12 @@ if (!token) { throw new Error( `Missing SANITY_API_TOKEN for ${ process.env.NODE_ENV === "development" ? "development" : "production" - } environment` + } environment`, ); } experimental_taintUniqueValue( "Do not pass the sanity API read token to the client.", process, - token + token, ); diff --git a/studioShared/schemas/documents/blogPosts.ts b/studioShared/schemas/documents/blogPosts.ts index 9b4c52ed4..10208b062 100644 --- a/studioShared/schemas/documents/blogPosts.ts +++ b/studioShared/schemas/documents/blogPosts.ts @@ -58,7 +58,7 @@ const blogPosts = defineType({ }, prepare({ title, date }) { const subtitles = [date && format(parseISO(date), "LLL d, yyyy")].filter( - Boolean + Boolean, ); return { title, subtitle: subtitles.join(" ") };