Skip to content

Commit

Permalink
style: no-require-imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kozistr committed Jul 26, 2024
1 parent 12d612d commit e8b8a47
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/templates/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,10 @@ const Post: React.FC<postProps> = ({ 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

Check failure on line 188 in src/templates/Post.tsx

View workflow job for this annotation

GitHub Actions / ci

A `require()` style import is forbidden
}
},
// 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}"
Expand Down

0 comments on commit e8b8a47

Please sign in to comment.