Skip to content

Commit 401c59e

Browse files
author
유용태
committed
프로젝트 코드 재구성
1 parent 11833e3 commit 401c59e

19 files changed

+4649
-10
lines changed

.prettierrc

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
{
2-
"plugins": ["@trivago/prettier-plugin-sort-imports"],
3-
"semi": true,
2+
"semi": false,
43
"printWidth": 120,
54
"tabWidth": 2,
6-
"useTabs": false,
7-
"proseWrap": "preserve",
8-
"singleQuote": true,
5+
"singleQuote": false,
96
"quoteProps": "consistent",
107
"trailingComma": "all",
11-
"singleAttributePerLine": false,
12-
13-
"importOrder": [".vue$", ".tsx$", "."],
14-
"importOrderSeparation": true
15-
}
8+
"singleAttributePerLine": false
9+
}

eslint.config.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import js from '@eslint/js'
2+
import globals from 'globals'
3+
import reactHooks from 'eslint-plugin-react-hooks'
4+
import reactRefresh from 'eslint-plugin-react-refresh'
5+
import tseslint from 'typescript-eslint'
6+
7+
export default tseslint.config(
8+
{ ignores: ['dist'] },
9+
{
10+
extends: [js.configs.recommended, ...tseslint.configs.recommended],
11+
files: ['**/*.{ts,tsx}'],
12+
languageOptions: {
13+
ecmaVersion: 2020,
14+
globals: globals.browser,
15+
},
16+
plugins: {
17+
'react-hooks': reactHooks,
18+
'react-refresh': reactRefresh,
19+
},
20+
rules: {
21+
...reactHooks.configs.recommended.rules,
22+
'react-refresh/only-export-components': [
23+
'warn',
24+
{ allowConstantExport: true },
25+
],
26+
},
27+
},
28+
)

index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Chapter 2-3. 관심사 분리와 폴더구조</title>
8+
<script src="https://cdn.tailwindcss.com"></script>
9+
</head>
10+
<body>
11+
<div id="root"></div>
12+
<script type="module" src="/src/main.tsx"></script>
13+
</body>
14+
</html>

package.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"name": "front-end-2-3",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "tsc -b && vite build",
9+
"lint": "eslint .",
10+
"preview": "vite preview",
11+
"test": "vitest",
12+
"coverage": "vitest run --coverage"
13+
},
14+
"dependencies": {
15+
"react": "^19.1.1",
16+
"react-dom": "^19.1.1"
17+
},
18+
"devDependencies": {
19+
"@eslint/js": "^9.33.0",
20+
"@radix-ui/react-dialog": "^1.1.14",
21+
"@radix-ui/react-select": "^2.2.5",
22+
"@testing-library/jest-dom": "^6.6.4",
23+
"@testing-library/react": "^16.3.0",
24+
"@testing-library/user-event": "^14.6.1",
25+
"@types/react": "^19.1.9",
26+
"@types/react-dom": "^19.1.7",
27+
"@vitejs/plugin-react": "^5.0.0",
28+
"axios": "^1.11.0",
29+
"class-variance-authority": "^0.7.1",
30+
"eslint": "^9.33.0",
31+
"eslint-plugin-react-hooks": "^5.2.0",
32+
"eslint-plugin-react-refresh": "^0.4.20",
33+
"globals": "^16.3.0",
34+
"jsdom": "^26.1.0",
35+
"lucide-react": "^0.539.0",
36+
"msw": "^2.10.4",
37+
"prettier": "^3.6.2",
38+
"react-router-dom": "^7.8.0",
39+
"typescript": "~5.9.2",
40+
"typescript-eslint": "^8.39.0",
41+
"vite": "^7.1.1",
42+
"vitest": "^3.2.4",
43+
"vitest-browser-react": "^1.0.1"
44+
}
45+
}

0 commit comments

Comments
 (0)