Skip to content

Commit

Permalink
fix: eslint on links
Browse files Browse the repository at this point in the history
  • Loading branch information
mwskwong committed Dec 18, 2024
1 parent 64df0b2 commit 23f1683
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const config = {
Link: 'a',
},
},
linkComponents: ['Link', 'NavLink'],
},
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
Expand Down
2 changes: 1 addition & 1 deletion src/components/home/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const About: FC = async (props) => {
<Flex gap="4" wrap="wrap">
{links.map(({ Icon, href, name }) => (
<Flex key={href} asChild align="center" gap="3">
<Link href={href} target="_blank">
<Link href={href} rel="noopener" target="_blank">
<Icon size={20} />
{name}
</Link>
Expand Down

0 comments on commit 23f1683

Please sign in to comment.