Skip to content

Commit 47ceabe

Browse files
committed
[fix] 🍎 EsLint 정상화
1 parent 4295245 commit 47ceabe

File tree

6 files changed

+267
-16
lines changed

6 files changed

+267
-16
lines changed

Diff for: β€Ž.eslintrc.json

+8-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@
66
"plugin:react/recommended",
77
"plugin:react-hooks/recommended",
88
"plugin:react/jsx-runtime",
9-
"plugin:react-hooks/recommended",
10-
"plugin:storybook/recommended"
9+
"plugin:storybook/recommended",
10+
"plugin:prettier/recommended",
11+
"plugin:@typescript-eslint/recommended"
1112
],
12-
"plugins": ["react", "react-hooks"]
13+
"plugins": ["react", "react-hooks", "prettier"],
14+
"rules": {
15+
"no-param-reassign": ["error", { "props": false }],
16+
"no-multiple-empty-lines": ["warn", { "max": 1, "maxEOF": 0 }]
17+
}
1318
}

Diff for: β€Ž.vscode/settings.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"editor.defaultFormatter": "esbenp.prettier-vscode",
3+
"editor.formatOnPaste": true,
4+
"editor.formatOnSave": true,
5+
"[typescript]": {
6+
"editor.defaultFormatter": "esbenp.prettier-vscode"
7+
}
8+
}

Diff for: β€Žcomponents.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
"hooks": "@/hooks"
1919
},
2020
"iconLibrary": "lucide"
21-
}
21+
}

Diff for: β€Žpackage.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
"build": "next build",
88
"start": "next start",
99
"lint": "next lint",
10-
"ssl": "local-ssl-proxy --source 3001 --target 3000",
11-
"storybook": "storybook dev -p 6006",
12-
"build-storybook": "storybook build"
10+
"format": "prettier --check --ignore-path .gitignore .",
11+
"format:fix": "prettier --write --ignore-path .gitignore ."
1312
},
1413
"dependencies": {
1514
"@hookform/resolvers": "^3.10.0",
@@ -27,6 +26,7 @@
2726
"axios": "^1.7.9",
2827
"chart.js": "^4.4.7",
2928
"chartjs-plugin-datalabels": "^2.2.0",
29+
"cheerio": "^1.0.0",
3030
"class-variance-authority": "^0.7.1",
3131
"clsx": "^2.1.1",
3232
"dayjs": "^1.11.13",
@@ -71,13 +71,14 @@
7171
"@storybook/test": "^8.4.7",
7272
"@playwright/test": "^1.49.1",
7373
"@trivago/prettier-plugin-sort-imports": "^5.2.1",
74+
"@types/cheerio": "^0.22.35",
7475
"@types/node": "^20.17.12",
7576
"@types/react": "^18",
7677
"@types/react-dom": "^18",
7778
"eslint": "^8",
7879
"eslint-config-next": "14.2.23",
7980
"eslint-config-prettier": "^9.1.0",
80-
"eslint-plugin-storybook": "^0.11.2",
81+
"eslint-plugin-prettier": "^5.2.2",
8182
"postcss": "^8",
8283
"prettier": "^3.4.2",
8384
"storybook": "^8.4.7",

0 commit comments

Comments
Β (0)