Skip to content

Commit cd72b3a

Browse files
committed
chore : eslint 마지막 수정
1 parent 7e8f4e3 commit cd72b3a

File tree

1 file changed

+17
-38
lines changed

1 file changed

+17
-38
lines changed

eslint.config.js

Lines changed: 17 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,43 @@
11
import { defineConfig } from "eslint-define-config";
22
import reactPlugin from "eslint-plugin-react";
3+
import reactHooksPlugin from "eslint-plugin-react-hooks";
34
import typescriptPlugin from "@typescript-eslint/eslint-plugin";
4-
import typescriptParser from "@typescript-eslint/parser";
5+
import prettierPlugin from "eslint-plugin-prettier";
6+
import jsxA11yPlugin from "eslint-plugin-jsx-a11y";
7+
import nextPlugin from "eslint-plugin-next";
58

69
export default defineConfig([
710
{
811
files: ["apps/web/**/*.{ts,tsx}"],
912
languageOptions: {
10-
parser: typescriptParser,
13+
parser: typescriptPlugin,
1114
parserOptions: {
1215
ecmaFeatures: { jsx: true },
1316
ecmaVersion: 2021,
1417
sourceType: "module",
1518
},
1619
},
17-
plugins: [
18-
"react",
19-
"react-hooks",
20-
"@typescript-eslint",
21-
"prettier",
22-
"jsx-a11y",
23-
"next",
24-
],
25-
extends: [
26-
"eslint:recommended",
27-
"plugin:@typescript-eslint/recommended",
28-
"plugin:react/recommended",
29-
"plugin:react-hooks/recommended",
30-
"plugin:jsx-a11y/recommended",
31-
"plugin:prettier/recommended",
32-
"plugin:next/core-web-vitals", // ✅ 요거 중요함 Next.js용
33-
],
34-
rules: {
35-
"prettier/prettier": "error",
20+
plugins: {
21+
react: reactPlugin,
22+
"react-hooks": reactHooksPlugin,
23+
"@typescript-eslint": typescriptPlugin,
24+
prettier: prettierPlugin,
25+
"jsx-a11y": jsxA11yPlugin,
26+
next: nextPlugin,
3627
},
37-
},
38-
{
39-
files: ["apps/webview/**/*.{ts,tsx}"],
40-
languageOptions: {
41-
parser: typescriptParser,
42-
parserOptions: {
43-
ecmaFeatures: { jsx: true },
44-
ecmaVersion: 2021,
45-
sourceType: "module",
28+
settings: {
29+
react: {
30+
version: "detect",
4631
},
4732
},
48-
plugins: [
49-
"react",
50-
"react-hooks",
51-
"@typescript-eslint",
52-
"prettier",
53-
"jsx-a11y",
54-
],
5533
extends: [
5634
"eslint:recommended",
57-
"plugin:@typescript-eslint/recommended",
5835
"plugin:react/recommended",
5936
"plugin:react-hooks/recommended",
37+
"plugin:@typescript-eslint/recommended",
6038
"plugin:jsx-a11y/recommended",
6139
"plugin:prettier/recommended",
40+
"plugin:next/core-web-vitals",
6241
],
6342
rules: {
6443
"prettier/prettier": "error",

0 commit comments

Comments
 (0)