Skip to content

Commit 48c4a5f

Browse files
Merge pull request #239 from LeeTaegyung/Next-이태경-sprint9
[이태경] Sprint9
2 parents 8d163dd + 0bc50a5 commit 48c4a5f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+6936
-1908
lines changed

.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.gitignore

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
# dependencies
44
/node_modules
55
/.pnp
6-
.pnp.js
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
712

813
# testing
914
/coverage
@@ -23,9 +28,10 @@
2328
npm-debug.log*
2429
yarn-debug.log*
2530
yarn-error.log*
31+
.pnpm-debug.log*
2632

27-
# local env files
28-
.env*.local
33+
# env files (can opt-in for committing if needed)
34+
.env*
2935

3036
# vercel
3137
.vercel

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
1+
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
22

33
## Getting Started
44

@@ -16,13 +16,9 @@ bun dev
1616

1717
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
1818

19-
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
19+
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
2020

21-
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
22-
23-
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
24-
25-
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
21+
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
2622

2723
## Learn More
2824

@@ -31,10 +27,10 @@ To learn more about Next.js, take a look at the following resources:
3127
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
3228
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
3329

34-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
30+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
3531

3632
## Deploy on Vercel
3733

3834
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.
3935

40-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
36+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.

eslint.config.mjs

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
import { dirname } from "path";
2+
import { fileURLToPath } from "url";
3+
import { FlatCompat } from "@eslint/eslintrc";
4+
5+
const __filename = fileURLToPath(import.meta.url);
6+
const __dirname = dirname(__filename);
7+
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
});
11+
12+
const eslintConfig = [
13+
...compat.extends("next/core-web-vitals", "next/typescript"),
14+
15+
{
16+
plugins: {
17+
import: pluginImport,
18+
},
19+
rules: {
20+
// 쓰이지 않는 변수 검사
21+
"no-unused-vars": "off",
22+
"@typescript-eslint/no-unused-vars": [
23+
"warn",
24+
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
25+
],
26+
27+
// import order 검사
28+
"import/order": [
29+
"error",
30+
{
31+
groups: [
32+
"builtin", // Node.js 내장 모듈
33+
"external", // 외부 라이브러리
34+
"internal", // 프로젝트 내부 alias
35+
["parent", "sibling", "index"], // 상대 경로
36+
"object", // (거의 없음)
37+
"type", // 타입 임포트
38+
],
39+
pathGroups: [
40+
{
41+
pattern: "next/**",
42+
group: "external",
43+
position: "before",
44+
},
45+
{
46+
pattern: "@/**",
47+
group: "internal",
48+
},
49+
{
50+
pattern: "@src/**",
51+
group: "internal",
52+
},
53+
],
54+
pathGroupsExcludedImportTypes: ["type"],
55+
"newlines-between": "always",
56+
alphabetize: {
57+
order: "asc",
58+
caseInsensitive: true,
59+
},
60+
},
61+
],
62+
},
63+
},
64+
];
65+
66+
export default eslintConfig;

next.config.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

next.config.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import type { NextConfig } from "next";
2+
3+
const nextConfig: NextConfig = {
4+
/* config options here */
5+
webpack: (config) => {
6+
config.module.rules.push({
7+
test: /\.svg$/,
8+
use: ["@svgr/webpack"],
9+
});
10+
11+
return config;
12+
},
13+
};
14+
15+
export default nextConfig;

0 commit comments

Comments
 (0)