Skip to content

Commit 2eebdfa

Browse files
committed
chore : 수정
1 parent 36fd162 commit 2eebdfa

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

eslint.config.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ import { defineConfig } from "eslint-define-config";
22
import reactPlugin from "eslint-plugin-react";
33
import typescriptPlugin from "@typescript-eslint/eslint-plugin";
44
import typescriptParser from "@typescript-eslint/parser";
5-
import next from "eslint-config-next";
5+
import nextPlugin from "eslint-plugin-next"; // optional
66

77
export default defineConfig([
8-
// 공통 React 설정
98
{
109
files: ["**/*.{js,jsx,ts,tsx}"],
1110
languageOptions: {
@@ -19,14 +18,18 @@ export default defineConfig([
1918
plugins: {
2019
react: reactPlugin,
2120
"@typescript-eslint": typescriptPlugin,
21+
next: nextPlugin,
2222
},
2323
rules: {
2424
"@typescript-eslint/no-unused-vars": "warn",
25+
"react/react-in-jsx-scope": "off",
26+
"react/jsx-key": "warn",
2527
},
2628
},
27-
// web만 next 설정
2829
{
29-
...next,
3030
files: ["apps/web/**/*.{js,ts,jsx,tsx}"],
31+
rules: {
32+
"@next/next/no-html-link-for-pages": "off", // 필요 없으면 제거해도 됨
33+
},
3134
},
3235
]);

0 commit comments

Comments
 (0)