Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ import nextTs from "eslint-config-next/typescript";
const eslintConfig = defineConfig([
...nextVitals,
...nextTs,
{
files: [
"src/components/BusinessCard.tsx",
"src/lib/cardRenderer.tsx",
"src/app/api/og/*/route.tsx",
],
rules: {
"@next/next/no-img-element": "off",
},
},
// Override default ignores of eslint-config-next.
globalIgnores([
// Default ignores of eslint-config-next:
Expand Down
1 change: 0 additions & 1 deletion src/components/BusinessCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ const BusinessCard = forwardRef<HTMLDivElement, Props>(({ summary, layout, optio

const renderAvatarBlock = () => (
<div className="mb-10 flex items-center gap-8">
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
src={profile.avatar_url}
alt={profile.login}
Expand Down
1 change: 0 additions & 1 deletion src/lib/cardRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@ function createBlock(
alignItems: "center",
}}
>
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
src={data.profile.avatarUrl}
width={58}
Expand Down
Loading