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
1 change: 1 addition & 0 deletions vite-project/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ lerna-debug.log*
node_modules
dist
dist-ssr
.env
*.local

# Editor directories and files
Expand Down
22 changes: 9 additions & 13 deletions vite-project/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@ import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import { defineConfig, globalIgnores } from 'eslint/config'

export default [
{ ignores: ['dist'] },
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{js,jsx}'],
extends: [
js.configs.recommended,
reactHooks.configs['recommended-latest'],
reactRefresh.configs.vite,
],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
Expand All @@ -16,18 +22,8 @@ export default [
sourceType: 'module',
},
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...js.configs.recommended.rules,
...reactHooks.configs.recommended.rules,
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
},
]
])
23 changes: 19 additions & 4 deletions vite-project/index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
<!doctype html>
<html lang="en">
<!DOCTYPE html>
<html lang="ko">
<head>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<link rel="icon" href="/logoIcon.svg" type="image/x-icon" />
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
<meta
name="description"
content="판다마켓 - 일상의 모든 물건을 거래해보세요!"
/>
<meta
name="keywords"
content="판다마켓, 중고장터, 중고거래, 당근, 중고마켓, 중고"
/>
<meta property="og:title" content="판다마켓" />
<meta
property="og:description"
content="판다마켓 - 일상의 모든 물건을 거래해보세요!"
/>
<meta property="og:image" content="logoIcon.svg" />
<title>판다마켓</title>
</head>
<body>
<div id="root"></div>
Expand Down
Loading
Loading