diff --git a/.eslintrc.json b/.eslintrc.json
index f8a16da..b50656a 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -1,7 +1,18 @@
{
- "extends": ["next/core-web-vitals", "prettier"],
+ "extends": [
+ "next/core-web-vitals", // Next.js 기본 규칙
+ "prettier" // Prettier와 충돌하지 않도록 조정
+ ],
"plugins": ["prettier"],
"rules": {
- "prettier/prettier": "error"
+ "prettier/prettier": "error", // Prettier를 ESLint 오류로 간주
+ "react/react-in-jsx-scope": "off", // React 17+에서 불필요
+ "import/prefer-default-export": "off", // 필요 시 규칙 비활성화 (옵션)
+ "react/jsx-props-no-spreading": "off" // Props 스프레드 허용 (옵션)
+ },
+ "settings": {
+ "react": {
+ "version": "detect" // 프로젝트의 React 버전 자동 감지
+ }
}
}
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index c412587..9b7eb27 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -24,7 +24,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v2
with:
- node-version: '16'
+ node-version: '18'
# 의존성 설치
- name: Install dependencies
diff --git a/README.md b/README.md
index ef0e47e..ed19b2a 100644
--- a/README.md
+++ b/README.md
@@ -1,40 +1,13 @@
-This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/pages/api-reference/create-next-app).
+# wikid
-## Getting Started
+- 지인들의 위키를 직접 작성하고 공유하는 플랫폼
-First, run the development server:
+# 명령어
-```bash
-npm run dev
-# or
-yarn dev
-# or
-pnpm dev
-# or
-bun dev
-```
-
-Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
-
-You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
-
-[API routes](https://nextjs.org/docs/pages/building-your-application/routing/api-routes) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
-
-The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/pages/building-your-application/routing/api-routes) instead of React pages.
-
-This project uses [`next/font`](https://nextjs.org/docs/pages/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
+### 실행
-## Learn More
-
-To learn more about Next.js, take a look at the following resources:
-
-- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
-- [Learn Next.js](https://nextjs.org/learn-pages-router) - an interactive Next.js tutorial.
-
-You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
-
-## Deploy on Vercel
+npm run dev
-The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
+### 빌드
-Check out our [Next.js deployment documentation](https://nextjs.org/docs/pages/building-your-application/deploying) for more details.
+npm run build
diff --git a/eslint.config.mjs b/eslint.config.mjs
deleted file mode 100644
index 546e4ff..0000000
--- a/eslint.config.mjs
+++ /dev/null
@@ -1,13 +0,0 @@
-import globals from 'globals';
-import pluginJs from '@eslint/js';
-import tseslint from 'typescript-eslint';
-import pluginReact from 'eslint-plugin-react';
-
-/** @type {import('eslint').Linter.Config[]} */
-export default [
- { files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'] },
- { languageOptions: { globals: globals.browser } },
- pluginJs.configs.recommended,
- ...tseslint.configs.recommended,
- pluginReact.configs.flat.recommended,
-];
diff --git a/next.config.ts b/next.config.ts
index 3915163..0748d34 100644
--- a/next.config.ts
+++ b/next.config.ts
@@ -1,4 +1,4 @@
-import type { NextConfig } from "next";
+import type { NextConfig } from 'next';
const nextConfig: NextConfig = {
/* config options here */
diff --git a/package-lock.json b/package-lock.json
index feb688c..94a4a9e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -10,7 +10,7 @@
"dependencies": {
"@tanstack/react-query": "^5.62.7",
"axios": "^1.7.9",
- "next": "15.1.0",
+ "next": "^15.1.0",
"postcss-nesting": "^13.0.1",
"react": "^19.0.0",
"react-dom": "^19.0.0"
diff --git a/package.json b/package.json
index 85b03b8..569b90b 100644
--- a/package.json
+++ b/package.json
@@ -6,12 +6,13 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
- "lint": "next lint"
+ "lint": "next lint",
+ "test": "npm run lint"
},
"dependencies": {
"@tanstack/react-query": "^5.62.7",
"axios": "^1.7.9",
- "next": "15.1.0",
+ "next": "^15.1.0",
"postcss-nesting": "^13.0.1",
"react": "^19.0.0",
"react-dom": "^19.0.0"
diff --git a/pages/_app.tsx b/pages/_app.tsx
index a7a790f..c14313e 100644
--- a/pages/_app.tsx
+++ b/pages/_app.tsx
@@ -1,5 +1,5 @@
-import "@/styles/globals.css";
-import type { AppProps } from "next/app";
+import '@/styles/globals.css';
+import type { AppProps } from 'next/app';
export default function App({ Component, pageProps }: AppProps) {
return ;
diff --git a/pages/_document.tsx b/pages/_document.tsx
index 628a733..f124b97 100644
--- a/pages/_document.tsx
+++ b/pages/_document.tsx
@@ -1,4 +1,4 @@
-import { Html, Head, Main, NextScript } from "next/document";
+import { Html, Head, Main, NextScript } from 'next/document';
export default function Document() {
return (
diff --git a/pages/api/hello.ts b/pages/api/hello.ts
deleted file mode 100644
index ea77e8f..0000000
--- a/pages/api/hello.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
-import type { NextApiRequest, NextApiResponse } from "next";
-
-type Data = {
- name: string;
-};
-
-export default function handler(
- req: NextApiRequest,
- res: NextApiResponse,
-) {
- res.status(200).json({ name: "John Doe" });
-}
diff --git a/pages/index.tsx b/pages/index.tsx
index a8ec761..4ce0675 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -1,114 +1,3 @@
-import Image from "next/image";
-import { Geist, Geist_Mono } from "next/font/google";
-
-const geistSans = Geist({
- variable: "--font-geist-sans",
- subsets: ["latin"],
-});
-
-const geistMono = Geist_Mono({
- variable: "--font-geist-mono",
- subsets: ["latin"],
-});
-
export default function Home() {
- return (
-
-
-
-
- -
- Get started by editing{" "}
-
- pages/index.tsx
-
- .
-
- - Save and see your changes instantly.
-
-
-
-
-
-
- );
+ return 메인
;
}
diff --git a/postcss.config.js b/postcss.config.js
index 980561b..cbb17e5 100644
--- a/postcss.config.js
+++ b/postcss.config.js
@@ -1,4 +1,4 @@
-module.exports = {
+export default {
plugins: {
tailwindcss: {},
'postcss-nesting': {},
diff --git a/postcss.config.mjs b/postcss.config.mjs
deleted file mode 100644
index 1a69fd2..0000000
--- a/postcss.config.mjs
+++ /dev/null
@@ -1,8 +0,0 @@
-/** @type {import('postcss-load-config').Config} */
-const config = {
- plugins: {
- tailwindcss: {},
- },
-};
-
-export default config;
diff --git a/public/file.svg b/public/file.svg
deleted file mode 100644
index 004145c..0000000
--- a/public/file.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/public/globe.svg b/public/globe.svg
deleted file mode 100644
index 567f17b..0000000
--- a/public/globe.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/public/next.svg b/public/next.svg
deleted file mode 100644
index 5174b28..0000000
--- a/public/next.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/public/vercel.svg b/public/vercel.svg
deleted file mode 100644
index 7705396..0000000
--- a/public/vercel.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/public/window.svg b/public/window.svg
deleted file mode 100644
index b2b2a44..0000000
--- a/public/window.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/tailwind.config.js b/tailwind.config.js
deleted file mode 100644
index d947ab1..0000000
--- a/tailwind.config.js
+++ /dev/null
@@ -1,9 +0,0 @@
-/** @type {import('tailwindcss').Config} */
-module.exports = {
- content: [],
- theme: {
- extend: {},
- },
- plugins: [],
-}
-
diff --git a/tailwind.config.ts b/tailwind.config.ts
index 1362b88..9143cf3 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -1,16 +1,16 @@
-import type { Config } from "tailwindcss";
+import type { Config } from 'tailwindcss';
export default {
content: [
- "./pages/**/*.{js,ts,jsx,tsx,mdx}",
- "./components/**/*.{js,ts,jsx,tsx,mdx}",
- "./app/**/*.{js,ts,jsx,tsx,mdx}",
+ './pages/**/*.{js,ts,jsx,tsx,mdx}',
+ './components/**/*.{js,ts,jsx,tsx,mdx}',
+ './app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
colors: {
- background: "var(--background)",
- foreground: "var(--foreground)",
+ background: 'var(--background)',
+ foreground: 'var(--foreground)',
},
},
},