From a6077de220578565a8b57f893c29bfeadbf1212f Mon Sep 17 00:00:00 2001 From: loopy-lim Date: Wed, 10 Jan 2024 08:57:38 +0000 Subject: [PATCH] feat: eslint changed for build --- .eslintrc.cjs | 2 ++ app/contact/page.tsx | 2 +- app/portfolio/dev/page.tsx | 2 +- app/portfolio/hackathon/page.tsx | 2 +- src/components/common/InputTextHover.tsx | 6 +++--- src/components/common/Navbar.tsx | 1 - src/components/common/TextTransition.tsx | 5 +++-- src/components/main/Award/Group.tsx | 7 +++---- src/components/main/Award/GroupItem.tsx | 11 ++++------ src/components/recruit/Waiting.tsx | 26 +++++++++++++----------- src/hooks/useTimeDiffer.tsx | 2 +- 11 files changed, 33 insertions(+), 33 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 1cbc9e2..f2c7d74 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -10,5 +10,7 @@ module.exports = { plugins: ["react-refresh"], rules: { "react-refresh/only-export-components": "off", + "@next/next/no-img-element": "off", + "no-unused-vars": "off", }, }; diff --git a/app/contact/page.tsx b/app/contact/page.tsx index aeb1d07..e682c1b 100644 --- a/app/contact/page.tsx +++ b/app/contact/page.tsx @@ -10,7 +10,7 @@ const ContactPage = () => { const [isLoading, setIsLoading] = useAtom(loadingState); useEffect(() => { setIsLoading(false); - }, []); + }, [setIsLoading]); return ( <> diff --git a/app/portfolio/dev/page.tsx b/app/portfolio/dev/page.tsx index 83951c0..098803a 100644 --- a/app/portfolio/dev/page.tsx +++ b/app/portfolio/dev/page.tsx @@ -10,7 +10,7 @@ const PortfolioPage = () => { const [isLoading, setIsLoading] = useAtom(loadingState); useEffect(() => { setIsLoading(false); - }, []); + }, [setIsLoading]); return ( <> diff --git a/app/portfolio/hackathon/page.tsx b/app/portfolio/hackathon/page.tsx index 318b191..9dc171a 100644 --- a/app/portfolio/hackathon/page.tsx +++ b/app/portfolio/hackathon/page.tsx @@ -10,7 +10,7 @@ const HackathonPage = () => { const [isLoading, setIsLoading] = useAtom(loadingState); useEffect(() => { setIsLoading(false); - }, []); + }, [setIsLoading]); return ( <> diff --git a/src/components/common/InputTextHover.tsx b/src/components/common/InputTextHover.tsx index af6ab59..bd619bc 100644 --- a/src/components/common/InputTextHover.tsx +++ b/src/components/common/InputTextHover.tsx @@ -3,7 +3,7 @@ import { FC, useEffect, useId, useState } from "react"; interface InputHoverProps { label?: string; value: string; - onChange: (e: React.ChangeEvent) => void; + onChange: () => void; placeholder?: string; className?: string; } @@ -25,7 +25,7 @@ export const InputTextHover: FC = ({ return (
= ({ onChange={onChange} />