Better eslint configuration and format some files
This commit is contained in:
@@ -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 } : {}) };
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user