Skip to content

Commit c1f98c6

Browse files
committed
build: lint code
1 parent 7909b35 commit c1f98c6

File tree

9 files changed

+19
-15
lines changed

9 files changed

+19
-15
lines changed

src/app/not-found.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import BackButton from "@/components/ui/BackButton";
2+
import Link from 'next/link'
23
import { cn } from "@/lib/utils";
34

45
export default function NotFound() {
@@ -13,12 +14,12 @@ export default function NotFound() {
1314
404
1415
</h1>
1516
<div className="mt-4 text-center">
16-
The page you're looking for, is either not there or has been moved.
17+
The page you&apos;re looking for, is either not there or has been moved.
1718
</div>
1819
<ul className="mt-4 flex gap-4 sm:gap-8">
1920
<li>{<BackButton>go back</BackButton>}</li>
2021
<li>|</li>
21-
<li><a href="/" className="text-slate-600 dark:text-slate-300 hover:text-black dark:hover:text-white hover:underline hover:underline-offset-4">home</a></li>
22+
<li><Link href="/" className="text-slate-600 dark:text-slate-300 hover:text-black dark:hover:text-white hover:underline hover:underline-offset-4">home</Link></li>
2223
</ul>
2324
</main>
2425
)

src/components/Experiences.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client'
22

3-
import { useState, useEffect } from 'react'
3+
import { useState } from 'react'
44
import { ExperienceTileProps, ExperienceTile } from './Tiles/ExperienceTile'
55
import BlurFade, { BLUR_FADE_DELAY } from '@/components/ui/BlurFade';
66
import { cn } from '@/lib/utils';
@@ -10,6 +10,7 @@ interface ExperiencesProps {
1010
}
1111

1212
export function Experiences({ arr }: ExperiencesProps) {
13+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1314
const [experiences, setExperiences] = useState(arr)
1415
return (
1516
<section id="experience" className="mb-12">

src/components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Copy, CopyCheck } from 'lucide-react'
22
import { useMediaQuery } from '@/hooks/useMediaQuery'
33
import LinkWithArrow from "@/components/ui/LinkWithArrow";
44
import BlurFade, { BLUR_FADE_DELAY } from '@/components/ui/BlurFade'
5-
import Image from 'next/image'
5+
// import Image from 'next/image'
66

77
import { useEffect, useState } from 'react';
88
import copy from 'copy-to-clipboard';

src/components/Navbar.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import { cn } from '@/lib/utils';
44
import ThemeSwitch from './ThemeSwitch';
5+
import Link from 'next/link';
56

67
const Navbar = () => {
78
// const completion = useReadingProgress();
@@ -13,10 +14,10 @@ const Navbar = () => {
1314
"max-w-full mx-auto px-8 sm:px-16 md:px-24 lg:max-w-4xl xl:max-w-5xl 2xl:max-w-6xl"
1415
)}>
1516
<ul className="flex gap-4 sm:gap-8">
16-
<li><a href="/" className="hover:underline hover:underline-offset-4">home</a></li>
17-
<li><a href="/#experience" className="hover:underline hover:underline-offset-4">experience</a></li>
18-
<li><a href="/#projects" className="hover:underline hover:underline-offset-4">projects</a></li>
19-
<li><a href="/posts" className="hover:underline hover:underline-offset-4">blog</a></li>
17+
<li><Link href="/" className="hover:underline hover:underline-offset-4">home</Link></li>
18+
<li><Link href="/#experience" className="hover:underline hover:underline-offset-4">experience</Link></li>
19+
<li><Link href="/#projects" className="hover:underline hover:underline-offset-4">projects</Link></li>
20+
<li><Link href="/posts" className="hover:underline hover:underline-offset-4">blog</Link></li>
2021
</ul>
2122
<div className="flex gap-0 sm:gap-4">
2223
<ThemeSwitch />

src/components/Projects.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useState, useEffect } from 'react'
1+
import { useState } from 'react'
22
import { ProjectTile, ProjectTileProps } from './Tiles/ProjectTile'
33
import BlurFade, { BLUR_FADE_DELAY } from '@/components/ui/BlurFade';
44
import { cn } from '@/lib/utils';
@@ -8,6 +8,7 @@ interface ProjectProps {
88
}
99

1010
export function Projects({ arr }: ProjectProps) {
11+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1112
const [projects, setProjects] = useState(arr)
1213
return (
1314
<section id="projects" className="mb-12">

src/components/Skills.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ interface SkillsProps {
1515
}
1616

1717
export function Skills({ arr }: SkillsProps) {
18+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1819
const [skills, setSkills] = useState(arr)
1920
const result = Object.entries(skills).map(([key, value], idx) => {
2021
return (

src/components/ThemeSwitch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { Moon, Sun } from 'lucide-react'
44
import { useState, useEffect } from 'react'
55
import { useTheme } from 'next-themes'
6-
import Image from "next/image"
6+
// import Image from "next/image";
77

88
export default function ThemeSwitch() {
99
const [mounted, setMounted] = useState(false)

src/components/Tiles/ExperienceTile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import LinkWithArrow from "@/components/ui/LinkWithArrow";
22
import { useMediaQuery } from '@/hooks/useMediaQuery'
3-
import Image from 'next/image'
3+
// import Image from 'next/image';
44

55
export type ExperienceTileProps = {
66
companyLogo: string

src/components/Tiles/ProjectTile.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { Icon } from '@iconify/react';
22
import { techIcons } from '@/lib/techIcons';
3-
import { useMediaQuery } from '@/hooks/useMediaQuery'
4-
import { Badge } from '@/components/ui/Badge'
5-
import BlurFade, { BLUR_FADE_DELAY } from '@/components/ui/BlurFade';
3+
import { Badge } from '@/components/ui/Badge';
4+
import BlurFade from '@/components/ui/BlurFade';
65
import LinkWithArrow from "@/components/ui/LinkWithArrow";
76

87
type ProjectTileDetailProps = {
@@ -20,7 +19,7 @@ export type ProjectTileProps = ProjectTileDetailProps & {
2019
};
2120

2221
export function ProjectTile({ delayTime, title, description, repo, repoUrl, live, liveUrl, techStack }: ProjectTileProps) {
23-
const isDesktop = useMediaQuery('(min-width: 768px)')
22+
// const isDesktop = useMediaQuery('(min-width: 768px)')
2423
return (
2524
<div className="items-center">
2625
<div className="flex flex-col md:items-start justify-between sm:flex-row mb-2">

0 commit comments

Comments
 (0)