diff --git a/eslint.config.js b/eslint.config.js
index 79a552e..d794d24 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -23,6 +23,10 @@ export default tseslint.config(
"warn",
{ allowConstantExport: true },
],
+ "@typescript-eslint/no-unused-vars": [
+ "warn", // 경고로 설정 (에러가 아님)
+ { argsIgnorePattern: "^_" }, // "_"로 시작하는 변수는 무시
+ ],
},
},
);
diff --git a/src/App.tsx b/src/App.tsx
index dbac9a1..e9f490b 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -9,6 +9,7 @@ function App() {
+
>
);
diff --git a/src/components/layout/Footer.tsx b/src/components/layout/Footer.tsx
index 471026f..580dce9 100644
--- a/src/components/layout/Footer.tsx
+++ b/src/components/layout/Footer.tsx
@@ -1,5 +1,3 @@
-import React from "react";
-
export default function Footer() {
return
@2024 dicaprioCode
;
}
diff --git a/src/components/layout/Header.tsx b/src/components/layout/Header.tsx
index 5fd1f46..9e9e15b 100644
--- a/src/components/layout/Header.tsx
+++ b/src/components/layout/Header.tsx
@@ -1,4 +1,3 @@
-import React from "react";
import { NavLink } from "react-router-dom";
export default function Header() {
diff --git a/src/components/ui/AppButton.tsx b/src/components/ui/AppButton.tsx
index 55246d7..0503aca 100644
--- a/src/components/ui/AppButton.tsx
+++ b/src/components/ui/AppButton.tsx
@@ -7,7 +7,7 @@ export default function AppButton(
) {
return (
- AppButton
+ {children}
);
}
diff --git a/src/components/ui/AppInput.tsx b/src/components/ui/AppInput.tsx
index 70473d4..591dd60 100644
--- a/src/components/ui/AppInput.tsx
+++ b/src/components/ui/AppInput.tsx
@@ -1,5 +1,5 @@
import * as S from "./appInputStyle";
-export default function AppInput({ id }: IAppInputProps) {
+export default function AppInput() {
return ;
}
diff --git a/src/pages/Page1/Page1.tsx b/src/pages/Page1/Page1.tsx
index c4c7a91..8c8b178 100644
--- a/src/pages/Page1/Page1.tsx
+++ b/src/pages/Page1/Page1.tsx
@@ -1,5 +1,3 @@
-import React from "react";
-
export default function Page1() {
return Page1
;
}
diff --git a/tsconfig.node.json b/tsconfig.node.json
index db0becc..f845868 100644
--- a/tsconfig.node.json
+++ b/tsconfig.node.json
@@ -15,10 +15,11 @@
/* Linting */
"strict": true,
- "noUnusedLocals": true,
- "noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
- "noUncheckedSideEffectImports": true
+ "noUncheckedSideEffectImports": true,
+ "noUnusedLocals": false, // 사용하지 않는 로컬 변수 검사 비활성화
+ "noUnusedParameters": false // 사용하지 않는 함수 매개변수 검사 비활성화
+ // "noUnusedImports": false // 사용하지 않는 import 검사 비활성화
},
"include": ["vite.config.ts"]
}
diff --git a/vite.config.ts b/vite.config.ts
index 8b0f57b..2cdc337 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -1,7 +1,11 @@
-import { defineConfig } from 'vite'
-import react from '@vitejs/plugin-react'
+import { defineConfig } from "vite";
+import react from "@vitejs/plugin-react";
// https://vite.dev/config/
export default defineConfig({
- plugins: [react()],
-})
+ plugins: [
+ react({
+ jsxImportSource: "react", // React 자동 import 비활성화
+ }),
+ ],
+});