Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
christinaroise committed Sep 4, 2024
1 parent b9dc346 commit 30433d1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions studio/schemas/deskStructure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand All @@ -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")
Expand All @@ -93,8 +93,8 @@ export default (S: StructureBuilder) =>
S.document()
.schemaType(compensationsId)
.documentId(compensationsId)
.title("Compensations")
.title("Compensations"),
),
])
]),
),
]);
4 changes: 2 additions & 2 deletions studio/schemas/objects/compensations/bonusesByLocation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions studio/schemas/objects/seo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
),
],
}),
Expand Down

0 comments on commit 30433d1

Please sign in to comment.