Skip to content

Commit

Permalink
fix : lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eun-hak committed Aug 19, 2024
1 parent 7cbb136 commit cd989e9
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 17 deletions.
14 changes: 11 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"

}


Expand Down
2 changes: 0 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -22,7 +21,6 @@ const pretendard = localFont({
variable: '--font-pretendard'
});

/* eslint-disable react-refresh/only-export-components*/
export const metadata: Metadata = {
title: '모아가이드',
description: 'STO 큐레이션 플랫폼 모아가이드',
Expand Down
1 change: 0 additions & 1 deletion src/components/product/Dividend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
}
Expand Down
1 change: 0 additions & 1 deletion src/components/product/Report.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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); // -> 페이지네이션용

Expand Down
2 changes: 0 additions & 2 deletions src/components/product/TopProduct.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
}
Expand Down
1 change: 0 additions & 1 deletion src/components/product/detail/CommercialRentChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ ChartJS.register(
ChartDataLabels
);

/* eslint-disable @typescript-eslint/no-unused-vars */
const CommercialRentChart = () => {
const chartRef = useRef(null);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 0 additions & 2 deletions src/components/product/detail/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import React, { useEffect, useRef } from 'react';

/* eslint-disable @typescript-eslint/no-unused-vars */

declare global {
interface Window {
kakao: any;
Expand Down
1 change: 0 additions & 1 deletion src/hook/useOnClickOutside.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { RefObject, useEffect } from 'react';

export default function useOnClickOutside<T extends HTMLElement>(
ref: RefObject<T>,
/* eslint-disable no-unused-vars */
handler: (event: MouseEvent) => void
) {
useEffect(() => {
Expand Down
1 change: 0 additions & 1 deletion src/store/modal.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions src/store/user.store.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { create } from 'zustand';
import { persist } from 'zustand/middleware';

/* eslint-disable no-unused-vars */

interface IUserInfo {
memberEmail: string;
memberNickName: string;
Expand Down

0 comments on commit cd989e9

Please sign in to comment.