From e8b8a4739c2637a71865128446aa88acf278b7d2 Mon Sep 17 00:00:00 2001 From: kozistr Date: Fri, 26 Jul 2024 19:09:33 +0900 Subject: [PATCH] style: no-require-imports --- src/templates/Post.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/templates/Post.tsx b/src/templates/Post.tsx index 95f8bf14..bee532a8 100644 --- a/src/templates/Post.tsx +++ b/src/templates/Post.tsx @@ -185,12 +185,10 @@ const Post: React.FC = ({ data, pageContext }) => { "name" : "${config.name}", "logo": { "@type": "ImageObject", - // eslint-disable-next-line @typescript-eslint/no-require-imports - "url": "${config.siteUrl}${require(`../images/${config.profileImageFileName}`)}" + "url": "${config.siteUrl}${require(`../images/${config.profileImageFileName}`)}" // eslint-disable-line @typescript-eslint/no-require-imports } }, - // eslint-disable-next-line @typescript-eslint/no-require-imports - "image": ["${config.siteUrl}${require(`../images/${config.profileImageFileName}`)}"]` + "image": ["${config.siteUrl}${require(`../images/${config.profileImageFileName}`)}"]` // eslint-disable-line @typescript-eslint/no-require-imports : `"publisher": { "@type" : "organization", "name" : "${config.name}"