Skip to content

Conversation

@seoyoung81
Copy link
Collaborator

@seoyoung81 seoyoung81 commented Mar 14, 2024

๐Ÿ“PR Description

์ด์Šˆ ๋ฒˆํ˜ธ : #101

๐Ÿ”จ์ž‘์—… ๋‚ด์šฉ

  • airbnb eslint ์„ค์ •
  • font setting

๐Ÿ’Ž๊ฒฐ๊ณผ (์‚ฌ์ง„ ๋ฐ ์ž‘์—… ๊ฒฐ๊ณผ)

  • yarn lint ์‹คํ–‰ ์‹œ, ๊ทธ๋™์•ˆ ์•ˆ ์ง€์ผฐ๋˜ lint rule error๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
image
  • font ์ตœ์ ํ™”๋ฅผ ์ ์šฉ์‹œํ‚ค๊ณ  safari์—์„œ๋„ pretandard๊ฐ€ ์ ์šฉ๋˜์—ˆ์–ด์š”
image * ํ˜„์žฌ ๋ฌธ์ œ๋Š” ์šฐ๋ฆฌ๊ฐ€ ์›๋ž˜ ์ฝ”๋“œ๋ฅผ bold๋ฅผ default๋กœ ํ•˜๊ณ  font-medium์„ ์ฃผ์—ˆ์—ˆ๋Š”๋ฐ ๋ฐ”๊พผ ์ฝ”๋“œ์—์„œ bold๋ฅผ default๋กœ ํ•˜๋ฉด font-medium์ด ์ ์šฉ์ด ์•ˆ๋˜๋Š” ์ด์Šˆ๊ฐ€ ์žˆ์–ด์š” default๋ฅผ ์ผ๋‹จ bold๋กœ ํ•ด๋‘์—ˆ๋Š”๋ฐ medium์œผ๋กœ ๋ฐ”๊พธ๋Š” ์ž‘์—…์ด ํ•„์š”ํ•  ๊ฒƒ ๊ฐ™์•„์š”

@vercel
Copy link

vercel bot commented Mar 14, 2024

The latest updates on your projects. Learn more about Vercel for Git โ†—๏ธŽ

Name Status Preview Comments Updated (UTC)
dnd-10th-7-frontend โœ… Ready (Inspect) Visit Preview ๐Ÿ’ฌ Add feedback Mar 17, 2024 5:47am

@seoyoung81 seoyoung81 requested a review from chamny20 March 14, 2024 07:39
@chamny20
Copy link
Member

  • ์ œ๊ฐ€ ๋ณด๋ ค๊ณ  ๋„ฃ์€ ๋ฉ”๋ชจ์ž…๋‹ˆ๋‹ค!
0314-1

Copy link
Member

@chamny20 chamny20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setting ๊ด€๋ จํ•ด์„œ ๊ณต๋ถ€ํ•  ์ˆ˜ ์žˆ๋Š” pr์ธ ๊ฒƒ ๊ฐ™์•„์š”~

์šธ์˜จ๋‹ˆ ์ตœ๊ณ  :>

Copy link
Member

@chamny20 chamny20 Mar 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ํ—‰ ์šฐ๋ฆฌ๊ฐ€ eslintrc.json ํŒŒ์ผ ์„ธํŒ…์ด ์ œ๋Œ€๋กœ ์•ˆ๋˜์–ด์žˆ์—ˆ๊ตฐ์š”!?

์ด ๋ถ€๋ถ„์€ ์–ด๋–ป๊ฒŒ ๋‹ค์‹œ ์„ธํŒ…์„ ํ•˜์‹  ๊ฑด๊ฐ€์š”?

Copy link
Collaborator Author

@seoyoung81 seoyoung81 Mar 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๊ณต์‹๋ฌธ์„œ์™€
EsLint ์„ค์ • ์•„ํ‹ฐํด
์„ ์ฐธ๊ณ ํ•ด์„œ ์ถ”๊ฐ€ํ–ˆ์–ด์š”!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

next.config ๊ด€๋ จํ•ด์„œ ๊ดœ์ฐฎ์€ ์•„ํ‹ฐํด์ด ์žˆ์–ด ๊ณต์œ ํ•ฉ๋‹ˆ๋‹ค~
https://han-py.tistory.com/503

@@ -1,5 +1,9 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
Copy link
Member

@chamny20 chamny20 Mar 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์š”๋ ‡๊ฒŒ ์„ค์ •ํ•˜๊ฒŒ ๋˜๋ฉด react์—์„œ ๊ด€๋ จ ๋ถ€๋ถ„์— ์žˆ์–ด์„œ <React.StrictMode>๋ฅผ ํ•œ ๊ฑฐ๋ž‘ ๋งˆ์ฐฌ๊ฐ€์ง€๊ตฐ์š”!

React.StrictMode : application ๋‚ด์—์„œ ๋ฌธ์ œ๊ฐ€ ์ผ์–ด๋‚  ์ˆ˜ ์žˆ๋Š” ๋ถ€๋ถ„์— ๋Œ€ํ•œ ๊ฒฝ๊ณ ๋ฅผ ์•Œ๋ ค์ฃผ๋Š” ๊ธฐ๋Šฅ

const nextConfig = {
reactStrictMode: true,
eslint: {
ignoreDuringBuilds: true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋นŒ๋“œ ์‹œ์— eslint๋ฅผ ๋ฌด์‹œํ•˜๋Š” ์„ค์ •์ด๊ตฐ์š”!

๊ฐ‘์ž๊ธฐ ๊ถ๊ธˆํ•ด์ง„ ๊ฒŒ..
์ด ์„ธํŒ…์„ true๋กœ ํ•˜๋Š” ๊ฒŒ ๋ณดํŽธ์ ์ธ ๊ฒƒ ๊ฐ™๋˜๋ฐ, ํ”„๋กœ์ ํŠธ ๊ด€๋ฆฌ?์ธก๋ฉด์—์„œ ๋ณด๋ฉด ์ด ์„ค์ •์„ ํ‚ค๋Š” ๊ฒŒ ๋‚˜์€ ๊ฑด์ง€ ๋„๋Š” ๊ฒŒ ๋‚˜์€ ๊ฑด์ง€ ๊ถ๊ธˆํ•˜๋„ค์š”!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์Œ ์ œ ์ƒ๊ฐ์—๋Š” ์„ ํƒ์ธ ๊ฒƒ ๊ฐ™์€๋ฐ ์ผ๋‹จ ์šฐ๋ฆฌ ํ”„๋กœ์ ํŠธ์— error๊ฐ€ ๋„ˆ๋ฌด ๋งŽ์•„์„œ ์ž„์˜๋กœ ์ถ”๊ฐ€ํ•ด๋’€์–ด์š”!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์š”๊ฑฐ๋Š” ์ €๋„ ํ•ญ์ƒ๊บผ๋‘๋Š”๋ฐ์š”~ ์š” ignoreDuringBuilds next.js์˜ eslint๋ฃฐ์ด ๋”ฐ๋กœ ์กด์žฌํ•˜๋Š”๋ฐ ํ•ด๋‹น ๋ฃฐ์ด ์ €ํฌ๊ฐ€ eslint๋ฃฐ ์„ธํŒ…ํ•ด๋‘”๊ฑฐ์™€ ๋‹ค๋ฅธ ๊ฒฝ์šฐ ๋ฃฐ์ด ์ค‘๋ณต๋˜๊ธฐ ๋•Œ๋ฌธ์— ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•ด์„œ ์ง€๊ธˆ์ฒ˜๋Ÿผ ๋”ฐ๋กœ eslin๋ฃฐ์„ ๊ฐ€์ ธ๊ฐ€๋Š” ๊ฒฝ์šฐ์—๋Š” ๊บผ๋‘๋Š”๊ฒŒ ์ข‹์Šต๋‹ˆ๋‹ค~
์•ˆ๊ทธ๋Ÿฌ๋ฉด ๋นŒ๋“œ์‹œ ํ•ญ์ƒ ์‹คํŒจํ•ฉ๋‹ˆ๋‹ค~

Copy link
Member

@chamny20 chamny20 Mar 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๊ด€๋ จ ์•„ํ‹ฐํด ๊ณต์œ ํ•ฉ๋‹ˆ๋‹น!

ํ”Œ์ ํ•  ๋•Œ ๋นŒ๋“œ ์‹œ๊ฐ„์ด ๊ฝค ๊ธธ์–ด ๊ณ ๋ฏผ์ด์—ˆ๋Š”๋ฐ,,
์Šน๋ฏผ๋‹˜์ด ๋ถ„๋ฆฌํ•˜๋ผ๊ณ  ํ•˜์‹  ์ด์œ ๊ฐ€ ์ž˜ ๋‚˜์™€์žˆ๋„ค์š”~ :>

tsconfig.json Outdated
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"moduleResolution": "Node",
Copy link
Member

@chamny20 chamny20 Mar 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ํ .. ์•„๋ž˜ ๋งํฌ๋ฅผ ๊นŠ๊ฒŒ ๋ณด์ง„ ๋ชปํ–ˆ์ง€๋งŒ ์ด ๋‚ด์šฉ ๊ด€๋ จํ•ด์„œ ์ž˜ ์ดํ•ด๊ฐ€ ์•ˆ๊ฐ€๋„ค์š”
ํ˜น์‹œ bundler์—์„œ Node๋กœ ์ˆ˜์ •๋œ ์ด์œ ๊ฐ€ ์žˆ์„๊นŒ์š”?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋‘๋ฒˆ์งธ ์•„ํ‹ฐํด๊ณผ ๊ฐ™์€ ๊ฒฝ์šฐ์˜€์Šต๋‹ˆ๋‹ค ๋‹ค์‹œ bundler๋กœ ์ˆ˜์ •ํ–ˆ์–ด์š”~!

Copy link
Collaborator Author

@seoyoung81 seoyoung81 Mar 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"moduleResolution": "bundler" ์˜ต์…˜์ด ์ถ”๊ฐ€๋œ pr

image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

localFont์— ๋Œ€ํ•ด ๊นŠ๊ฒŒ ํ•œ๋ฒˆ ๋ด์•ผ๊ฒ ์–ด์š”!
weight ๊ด€๋ จ ๋ฌธ์ œ๋Š” ํšŒ์˜ ๋•Œ ํ•œ๋ฒˆ ์–˜๊ธฐํ•ด๋ด์š”~!

Copy link
Member

@saseungmin saseungmin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eslint ๋ฃฐ ์„ธํŒ…๊ด€๋ จํ•ด์„œ ์ œ๊ฐ€ ๋‚˜์ค‘์— ์„ค๋ช…๋“œ๋ ค๋„ ์ข‹์„ ๊ฒƒ ๊ฐ™๋„ค์š”! ใ…Žใ…Ž
์„ธํŒ…์€ ์ž˜ ํ•˜์‹ ๊ฒƒ ๊ฐ™์•„์š”~! ์ด์ œ ์ถ”๊ฐ€์ ์œผ๋กœ ๋ฃฐ์„ ์ผœ๊ณ  ์ฝ”๋“œ ์ˆ˜์ •ํ•ด๋‚˜๊ฐ€๋ฉด ๋  ๊ฒƒ ๊ฐ™์•„์š”!
๊ทธ๋ฆฌ๊ณ  save auto fix๋ฅผ ์„ค์ •์•ˆํ•ด๋‘์‹ ๊ฒƒ ๊ฐ™์€๋ฐ~ ์š”๊ฑฐ๋Š” ๊ฑฐ์˜ ํ•„์ˆ˜๋กœ ํ•ด๋‘์„ธ์š”!
์ง€๊ธˆ์€ yarn lint ์Šคํฌ๋ฆฝํŠธ๋ฅผ ๋Œ๋ ค์•ผ๋งŒํ•˜๋Š” ๋ฒˆ๊ฑฐ๋กœ์›€์ด ์žˆ์ง€๋งŒ, ์ด ๊ณผ์ •์„ ํŒŒ์ผ ์ €์žฅ์‹œ ์ž๋™์œผ๋กœ lint ์ฒดํฌ ํ›„ ์ˆ˜์ •๊นŒ์ง€ ํ•ด์ค€๋‹ต๋‹ˆ๋‹ค~

vscode์˜ settings.json์—์„œ ์ˆ˜์ •์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค~

image

https://www.digitalocean.com/community/tutorials/workflow-auto-eslinting

์š”๊ฑด ์ œ๊ฐ€ ํ•ญ์ƒ ์‚ฌ์šฉํ•˜๋Š” eslint rule์„ ํŒจํ‚ค์ง€ํ™”ํ•ด๋‘”๊ฑด๋ฐ eslint๋ฃฐ ์„ธํŒ… ์ฐธ๊ณ ํ•ด์ฃผ์„ธ์š”! ๊ถ๊ธˆํ•œ๊ฑฐ์žˆ์œผ๋ฉด ์—ฌ์ญค๋ด์ฃผ์„ธ์šฉ!

.eslintrc.json Outdated
"react/jsx-filename-extension": ["warn", { "extensions": [".ts", ".tsx"] }],
"no-useless-catch": "off"
}
}
Copy link
Member

@saseungmin saseungmin Mar 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eol(end of line)์€ ๊ผญ ์‹ ๊ฒฝ์จ์„œ ๋„ฃ์–ด์ฃผ์„ธ์š”! ๋งˆ์ง€๋ง‰์— ๊ฐœํ–‰์„ ๋„ฃ๋Š”๊ฒŒ posix ๋ช…์„ธ์— ์ •์˜๋˜์–ด์žˆ๊ธฐ ๋•Œ๋ฌธ์— ๊ผญ ์‹ ๊ฒฝ์จ์„œ ๋„ฃ์–ด์ฃผ์–ด์•ผํ•ฉ๋‹ˆ๋‹ค!
์ด์œ ๋Š” ๊ฐ ์šด์˜์ฒด์ œ๋งˆ๋‹ค ๊ฐœํ–‰ ์ฐจ์ด๋„ ์กด์žฌํ•˜๊ณ , ๋งˆ์ง€๋ง‰์— ๊ฐœํ–‰์œผ๋กœ ๋๋‚˜์ง€ ์•Š์œผ๋ฉด ํ•ด๋‹น ์ค„์€ ์‹ค์ œ ์ค„๋กœ ๊ฐ„์ฃผํ•˜์ง€ ์•Š์•„์„œ ์ผ๋ถ€ ํ”„๋กœ๊ทธ๋žจ์—์„œ๋Š” ๋ฌธ์ž๋กœ ์ฒ˜๋ฆฌํ•˜์ง€ ์•Š์„ ์ˆ˜ ์žˆ์–ด์š”! (-ํ‘œ์‹œ๊ฐ€ ๋งˆ์ง€๋ง‰์— ๊ฐœํ–‰์ฒ˜๋ฆฌ๊ฐ€ ์—†๋‹ค๋Š”๊ฒƒ์ž…๋‹ˆ๋‹ค~)

image
3.206 Line
A sequence of zero or more non- <newline> characters plus a terminating <newline> character.

const nextConfig = {
reactStrictMode: true,
eslint: {
ignoreDuringBuilds: true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์š”๊ฑฐ๋Š” ์ €๋„ ํ•ญ์ƒ๊บผ๋‘๋Š”๋ฐ์š”~ ์š” ignoreDuringBuilds next.js์˜ eslint๋ฃฐ์ด ๋”ฐ๋กœ ์กด์žฌํ•˜๋Š”๋ฐ ํ•ด๋‹น ๋ฃฐ์ด ์ €ํฌ๊ฐ€ eslint๋ฃฐ ์„ธํŒ…ํ•ด๋‘”๊ฑฐ์™€ ๋‹ค๋ฅธ ๊ฒฝ์šฐ ๋ฃฐ์ด ์ค‘๋ณต๋˜๊ธฐ ๋•Œ๋ฌธ์— ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•ด์„œ ์ง€๊ธˆ์ฒ˜๋Ÿผ ๋”ฐ๋กœ eslin๋ฃฐ์„ ๊ฐ€์ ธ๊ฐ€๋Š” ๊ฒฝ์šฐ์—๋Š” ๊บผ๋‘๋Š”๊ฒŒ ์ข‹์Šต๋‹ˆ๋‹ค~
์•ˆ๊ทธ๋Ÿฌ๋ฉด ๋นŒ๋“œ์‹œ ํ•ญ์ƒ ์‹คํŒจํ•ฉ๋‹ˆ๋‹ค~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

setting : eslint + prettier + dependency ๊ด€๋ จ ์žฌ์„ค์ •

4 participants