Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export default tseslint.config(
"warn",
{ allowConstantExport: true },
],
"@typescript-eslint/no-unused-vars": [
"warn", // 경고로 설정 (에러가 아님)
{ argsIgnorePattern: "^_" }, // "_"로 시작하는 변수는 무시
],
},
},
);
1 change: 1 addition & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function App() {
<GlobalStyles />
<Header />
<Outlet />

<Footer />
</>
);
Expand Down
2 changes: 0 additions & 2 deletions src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

export default function Footer() {
return <div>@2024 dicaprioCode</div>;
}
1 change: 0 additions & 1 deletion src/components/layout/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { NavLink } from "react-router-dom";

export default function Header() {
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/AppButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function AppButton(
) {
return (
<S.Button onClick={onClickFnc} type={type} $style={style}>
AppButton
{children}
</S.Button>
);
}
2 changes: 1 addition & 1 deletion src/components/ui/AppInput.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as S from "./appInputStyle";

export default function AppInput({ id }: IAppInputProps) {
export default function AppInput() {
return <S.Input />;
}
2 changes: 0 additions & 2 deletions src/pages/Page1/Page1.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

export default function Page1() {
return <div>Page1</div>;
}
7 changes: 4 additions & 3 deletions tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
12 changes: 8 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -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 비활성화
}),
],
});
Loading