Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tidvn committed Oct 26, 2024
1 parent 7ec03cc commit 4a739c4
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = {
},
],
'react/prop-types': 0,
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/no-unused-vars': 1,
'react/no-unescaped-entities': 0,
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-var-requires': 'off',
Expand Down
1 change: 0 additions & 1 deletion app/blog/[...slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'css/prism.css'
import 'katex/dist/katex.css'

import PageTitle from '@/components/common/PageTitle'
import { components } from '@/components/common/MDXComponents'
import { MDXLayoutRenderer } from 'pliny/mdx-components'
import { sortPosts, coreContent, allCoreContent } from 'pliny/utils/contentlayer'
Expand Down
2 changes: 0 additions & 2 deletions app/type/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { icons } from '@/components/common/social-icons'

export type Member = {
name: string
github: string
Expand Down
1 change: 1 addition & 0 deletions components/app/HomePage.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
// import Link from '@/components/Link'
// import Tag from '@/components/Tag'
import siteMetadata from '@/data/siteMetadata'
Expand Down
2 changes: 0 additions & 2 deletions components/common/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import headerNavLinks from '@/data/headerNavLinks'
import Logo from '@/data/logo.svg'
import Link from './Link'
import MobileNav from './MobileNav'
import ThemeSwitch from './ThemeSwitch'
import SearchButton from './SearchButton'

const Header = () => {
let headerClass = 'flex items-center w-full bg-white dark:bg-gray-950 justify-between py-10'
Expand Down
9 changes: 1 addition & 8 deletions layouts/PostLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,12 @@ import Image from 'next/image'
import Tag from '@/components/common/Tag'
import ScrollTopAndComment from '@/components/common/ScrollTopAndComment'
import { FaRegCalendarAlt } from 'react-icons/fa'
import { FaRegHourglassHalf, FaFire } from 'react-icons/fa6'
import { FaRegHourglassHalf } from 'react-icons/fa6'
import ProgressBar from '@/components/common/ProgressBar'
import { getGithubMembers } from 'actions/getGithubMember'
import siteMetadata from '@/data/siteMetadata'
import Comments from '@/components/common/Comments'

const postDateTemplate: Intl.DateTimeFormatOptions = {
weekday: 'long',
year: 'numeric',
month: 'long',
day: 'numeric',
}

interface LayoutProps {
content: CoreContent<Blog>
authorList: string[]
Expand Down
1 change: 1 addition & 0 deletions layouts/PostSimple.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ interface LayoutProps {
}

export default function PostLayout({ content, next, prev, children }: LayoutProps) {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { path, slug, date, title } = content

return (
Expand Down

0 comments on commit 4a739c4

Please sign in to comment.