Skip to content

Commit

Permalink
fix: Remove needless anchor and Fix build scripts (#350)
Browse files Browse the repository at this point in the history
* fix: Remove needless anchor element from next/link

* Fix lock file

* Update linter
  • Loading branch information
MikuroXina authored Oct 2, 2023
1 parent 6f3a4d8 commit 9285700
Show file tree
Hide file tree
Showing 4 changed files with 1,133 additions and 1,982 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"extends": ["next/core-web-vitals", "prettier"],
"plugins": ["chakra-ui"],
"parserOptions": {
"project": true
},
"rules": {
"sort-imports": "error",
"@next/next/no-img-element": "off",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"eslint": "8.37.0",
"eslint-config-next": "13.5.3",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-chakra-ui": "^0.8.0",
"eslint-plugin-chakra-ui": "^0.10.0",
"husky": "^8.0.3",
"jsdom": "^22.1.0",
"lint-staged": "^13.2.3",
Expand Down
8 changes: 3 additions & 5 deletions src/pages/blog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ const BlogCard = ({ id, title, date, author, authorId }: Metadata): JSX.Element
</NextLink>
<VStack alignItems="self-start" flex="1 1" p={2} spacing="0.5">
<NextLink href={`/blog/${id}`} passHref>
<a>
<Heading as="h3" fontSize="lg">
{title}
</Heading>
</a>
<Heading as="h3" fontSize="lg">
{title}
</Heading>
</NextLink>
<Flex align="self-end" wrap="wrap" gap={2} w="100%">
<Link href={`https://github.com/${authorId}`}>{author}</Link>
Expand Down
Loading

0 comments on commit 9285700

Please sign in to comment.