From 30433d1ca3f328f772cdb41fde6535543ff33c72 Mon Sep 17 00:00:00 2001 From: christinaroise Date: Wed, 4 Sep 2024 13:58:51 +0200 Subject: [PATCH] fix lint --- studio/schemas/deskStructure.ts | 16 ++++++++-------- .../objects/compensations/bonusesByLocation.ts | 4 ++-- studio/schemas/objects/seo.ts | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/studio/schemas/deskStructure.ts b/studio/schemas/deskStructure.ts index bf287431f..50079f3b8 100644 --- a/studio/schemas/deskStructure.ts +++ b/studio/schemas/deskStructure.ts @@ -37,17 +37,17 @@ export default (S: StructureBuilder) => S.document() .schemaType(companyInfoID) .documentId(companyInfoID) - .title("Company Information") + .title("Company Information"), ), S.listItem() .title("Company Locations") .icon(PinIcon) .child( S.documentTypeList(companyLocationsID).title( - "Company Locations" - ) + "Company Locations", + ), ), - ]) + ]), ), S.listItem() .title("Legal Documents") @@ -64,7 +64,7 @@ export default (S: StructureBuilder) => S.document() .schemaType("navigationManager") .documentId("navigationManager") - .title("Navigation Manager") + .title("Navigation Manager"), ), S.listItem() .title("Dynamic Pages") @@ -84,7 +84,7 @@ export default (S: StructureBuilder) => S.document() .schemaType(blogId) .documentId(blogId) - .title("Blog Overview & Settings") + .title("Blog Overview & Settings"), ), S.listItem() .title("Compensations") @@ -93,8 +93,8 @@ export default (S: StructureBuilder) => S.document() .schemaType(compensationsId) .documentId(compensationsId) - .title("Compensations") + .title("Compensations"), ), - ]) + ]), ), ]); diff --git a/studio/schemas/objects/compensations/bonusesByLocation.ts b/studio/schemas/objects/compensations/bonusesByLocation.ts index 06d9bb411..4d72daf6b 100644 --- a/studio/schemas/objects/compensations/bonusesByLocation.ts +++ b/studio/schemas/objects/compensations/bonusesByLocation.ts @@ -51,7 +51,7 @@ export const bonusesByLocation = defineField({ validation: (Rule) => Rule.custom((bonusesByLocation, context) => { const duplicateCheck = checkForDuplicateLocations( - bonusesByLocation as BonusEntry[] | undefined + bonusesByLocation as BonusEntry[] | undefined, ); if (duplicateCheck !== true) return duplicateCheck; @@ -79,7 +79,7 @@ interface BonusEntry { * @returns {string | true} - Returns an error message if duplicate locations are found, or true if all are unique. */ const checkForDuplicateLocations = ( - bonusesByLocation: BonusEntry[] | undefined + bonusesByLocation: BonusEntry[] | undefined, ): string | true => { if (!bonusesByLocation) return true; diff --git a/studio/schemas/objects/seo.ts b/studio/schemas/objects/seo.ts index ffceb4876..af7189e7f 100644 --- a/studio/schemas/objects/seo.ts +++ b/studio/schemas/objects/seo.ts @@ -37,10 +37,10 @@ const seo = defineField({ "An optional but recommended short description to boost visitor engagement from social media and search engines. Try to keep it between 70-160 characters.", validation: (Rule) => [ Rule.min(70).warning( - "A description of at least 70 characters has a higher chance of converting visitors" + "A description of at least 70 characters has a higher chance of converting visitors", ), Rule.max(160).warning( - "A description of more than 160 characters has a lower chance of converting visitors" + "A description of more than 160 characters has a lower chance of converting visitors", ), ], }),