diff --git a/.eslintrc.json b/.eslintrc.json index 3fa65f4..c16ca13 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -15,11 +15,19 @@ "plugins": ["react", "react-refresh"], "rules": { "@next/next/no-img-element": "off", + "@typescript-eslint/no-explicit-any": "off", - - "no-unused-vars": "off" - + + + "no-unused-vars": "off", + + "@typescript-eslint/no-unused-vars": "off", + + "react-hooks/rules-of-hooks": "off", + + "react-refresh/only-export-components": "off" + } diff --git a/src/app/layout.tsx b/src/app/layout.tsx index b25c5fc..929f46f 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -9,7 +9,6 @@ import dynamic from 'next/dynamic'; import Script from 'next/script'; const ModalProvider = dynamic(() => import('@/providers/ModalProvider'), { ssr: false }); - declare global { interface Window { kakao: any; @@ -22,7 +21,6 @@ const pretendard = localFont({ variable: '--font-pretendard' }); -/* eslint-disable react-refresh/only-export-components*/ export const metadata: Metadata = { title: '모아가이드', description: 'STO 큐레이션 플랫폼 모아가이드', diff --git a/src/components/product/Dividend.tsx b/src/components/product/Dividend.tsx index ebb2155..390e0ea 100644 --- a/src/components/product/Dividend.tsx +++ b/src/components/product/Dividend.tsx @@ -10,7 +10,6 @@ import Image from 'next/image'; import { memo, useState } from 'react'; import { Divide } from '@/types/Diviend'; -/* eslint-disable @typescript-eslint/no-unused-vars */ interface DividendProps { dividend: Divide[]; } diff --git a/src/components/product/Report.tsx b/src/components/product/Report.tsx index 5c9b1d1..6411d22 100644 --- a/src/components/product/Report.tsx +++ b/src/components/product/Report.tsx @@ -8,7 +8,6 @@ import 'swiper/css/pagination'; import Image from 'next/image'; import { useState } from 'react'; -/* eslint-disable @typescript-eslint/no-unused-vars */ const Report = () => { const [swiperIndex, setSwiperIndex] = useState(0); // -> 페이지네이션용 diff --git a/src/components/product/TopProduct.tsx b/src/components/product/TopProduct.tsx index 826899b..7a1ff45 100644 --- a/src/components/product/TopProduct.tsx +++ b/src/components/product/TopProduct.tsx @@ -9,8 +9,6 @@ import Image from 'next/image'; import { memo, useState } from 'react'; import { Summary } from '@/types/Diviend'; -/* eslint-disable @typescript-eslint/no-unused-vars */ - interface TopProductProps { summary: Summary[]; } diff --git a/src/components/product/detail/CommercialRentChart.tsx b/src/components/product/detail/CommercialRentChart.tsx index 88adb90..d6959b3 100644 --- a/src/components/product/detail/CommercialRentChart.tsx +++ b/src/components/product/detail/CommercialRentChart.tsx @@ -22,7 +22,6 @@ ChartJS.register( ChartDataLabels ); -/* eslint-disable @typescript-eslint/no-unused-vars */ const CommercialRentChart = () => { const chartRef = useRef(null); diff --git a/src/components/product/detail/CommercialVacancyRateChart.tsx b/src/components/product/detail/CommercialVacancyRateChart.tsx index 39fbabb..1b9ac89 100644 --- a/src/components/product/detail/CommercialVacancyRateChart.tsx +++ b/src/components/product/detail/CommercialVacancyRateChart.tsx @@ -12,7 +12,6 @@ import { ChartJS.register(CategoryScale, LinearScale, BarElement, Title, Tooltip, Legend); -/* eslint-disable @typescript-eslint/no-unused-vars */ const CommercialVacancyRateChart = () => { const chartRef = useRef(null); diff --git a/src/components/product/detail/Map.tsx b/src/components/product/detail/Map.tsx index f0b3698..073577e 100644 --- a/src/components/product/detail/Map.tsx +++ b/src/components/product/detail/Map.tsx @@ -2,8 +2,6 @@ import React, { useEffect, useRef } from 'react'; -/* eslint-disable @typescript-eslint/no-unused-vars */ - declare global { interface Window { kakao: any; diff --git a/src/hook/useOnClickOutside.ts b/src/hook/useOnClickOutside.ts index 20b923d..d37e2ef 100644 --- a/src/hook/useOnClickOutside.ts +++ b/src/hook/useOnClickOutside.ts @@ -2,7 +2,6 @@ import { RefObject, useEffect } from 'react'; export default function useOnClickOutside( ref: RefObject, - /* eslint-disable no-unused-vars */ handler: (event: MouseEvent) => void ) { useEffect(() => { diff --git a/src/store/modal.store.ts b/src/store/modal.store.ts index d73f70e..10e6100 100644 --- a/src/store/modal.store.ts +++ b/src/store/modal.store.ts @@ -2,7 +2,6 @@ import { create } from 'zustand'; interface useModalStoreType { open: boolean; - /* eslint-disable no-unused-vars */ setOpen: (payload: boolean) => void; modalType: string; setModalType: (payload: string) => void; diff --git a/src/store/user.store.ts b/src/store/user.store.ts index ae0aeb8..7fb8707 100644 --- a/src/store/user.store.ts +++ b/src/store/user.store.ts @@ -1,8 +1,6 @@ import { create } from 'zustand'; import { persist } from 'zustand/middleware'; -/* eslint-disable no-unused-vars */ - interface IUserInfo { memberEmail: string; memberNickName: string;