Better eslint configuration and format some files

This commit is contained in:
prototypa
2023-08-22 22:52:01 -04:00
parent da8ef74b38
commit c1f36e9f79
10 changed files with 37 additions and 43 deletions

View File

@@ -21,7 +21,9 @@ export const fetchLocalImages = async () => {
};
/** */
export const findImage = async (imagePath?: string | ImageMetadata | null): Promise<string | ImageMetadata | undefined | null> => {
export const findImage = async (
imagePath?: string | ImageMetadata | null
): Promise<string | ImageMetadata | undefined | null> => {
// Not string
if (typeof imagePath !== 'string') {
return imagePath;
@@ -94,4 +96,4 @@ export const adaptOpenGraphImages = async (
);
return { ...openGraph, ...(adaptedImages ? { images: adaptedImages } : {}) };
};
};