Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
xingyaoww committed Dec 18, 2024
1 parent 8b7033f commit a79150e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions frontend/src/components/features/chat/chat-message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ import { CopyToClipboardButton } from "#/components/shared/buttons/copy-to-clipb

function MarkdownLink({

Check failure on line 9 in frontend/src/components/features/chat/chat-message.tsx

View workflow job for this annotation

GitHub Actions / Lint frontend

Replace `⏎··href,⏎··children,⏎··...props⏎}:·React.ComponentProps<'a'` with `·href,·children,·...props·}:·React.ComponentProps<"a"`
href,

Check failure on line 10 in frontend/src/components/features/chat/chat-message.tsx

View workflow job for this annotation

GitHub Actions / Lint frontend

'href' is missing in props validation
children: linkChildren,
}: {
href?: string;
children: React.ReactNode;
}) {
children,
...props
}: React.ComponentProps<'a'>) {
return (
<a href={href} target="_blank" rel="noopener noreferrer">
{linkChildren}
<a href={href} target="_blank" rel="noopener noreferrer" {...props}>

Check failure on line 15 in frontend/src/components/features/chat/chat-message.tsx

View workflow job for this annotation

GitHub Actions / Lint frontend

Prop spreading is forbidden
{children}
</a>
);
}
Expand Down

0 comments on commit a79150e

Please sign in to comment.