๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐Ÿ’ป DEV/NextJS11

[NextJS] EsLint Delete `โ` eslint (prettier/prettier) ์—๋Ÿฌ ํ•ด๊ฒฐํ•˜๊ธฐ ํ•„์š”์„ฑ Next JS, Nest JS๋ฅผ ๋‹ค๋ฃจ๊ธฐ ์œ„ํ•ด ๊ฐœ๋ฐœ๋‹จ๊ณ„ ์ดˆ๊ธฐ, EsLint๋ฅผ ์„ค์ •ํ•ด์คฌ์Šต๋‹ˆ๋‹ค.(์„ค์ •๋ฐฉ๋ฒ•์€ ๊ธ€ ํ•˜๋‹จ ๋งํฌ ์ฒจ๋ถ€) ํ˜‘์—…์‹œ, ์ฝ”๋“œ์˜ ํ†ต์ผ์„ฑ๊ณผ ์œ ์ง€๋ณด์ˆ˜ ๋“ฑ์˜ ๋ฌธ์ œ๋ฅผ ์œ„ํ•ด EsLint๋ฅผ ์„ค์ •ํ•œ ๊ฒƒ์— ๊ทธ์น˜์ง€ ์•Š๊ณ  ๋ฐœ์ƒํ•œ ์—๋Ÿฌ์— ๋Œ€ํ•ด์„œ ํ•ด๊ฒฐํ•ด๋ณด๋Š” ์‹œ๊ฐ„์„ ๊ฐ–๊ณ ์ž ํ•ฉ๋‹ˆ๋‹ค. Delete `โ` eslint (prettier/prettier) ์—๋Ÿฌ์— ๋Œ€ํ•ด ์‚ดํŽด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ์ ‘๊ทผ 1. ๋ฐœ์ƒํ•œ ์—๋Ÿฌ ๋ชจ์Šต 2. ์—๋Ÿฌ ํ•ด๊ฒฐ๋ฐฉ์•ˆ ์ œ์‹œ ๋ฐฉ๋ฒ• 1. ๋ฐœ์ƒํ•œ ์—๋Ÿฌ ๋ชจ์Šต ์ฝ”๋”ฉ์„ ํ•˜๋˜ ์ค‘, ๊ฐ ์ฝ”๋“œ๋ผ์ธ ๋์— ๋นจ๊ฐ„๋ฐ‘์ค„์ด ๋ฐœ์ƒํ•˜๋ฉด์„œ (๊ตฌ๋™์€ ๋˜์ง€๋งŒ) ๊ต‰์žฅํžˆ ๋ˆˆ์— ๊ฑฐ์Šฌ๋ฆฌ๋Š” ์ƒํ™ฉ์— ๋…ธ์ถœ๋์Šต๋‹ˆ๋‹ค. Delete `โ` eslint (prettier/prettier) ์ •ํ™•ํ•œ ์—๋Ÿฌ๋ช…์นญ์€ ์œ„์™€ ๊ฐ™์ด ์‹๋ณ„์ด ๋์Šต๋‹ˆ๋‹ค. 2. ์—๋Ÿฌ ํ•ด๊ฒฐ๋ฐฉ์•ˆ ์ œ์‹œ.. 2023. 3. 9.
[NextJS] EsLint ์„ค์ •ํ•˜๊ธฐ ํ•„์š”์„ฑ ํ”„๋กœ์ ํŠธ์— ํ•จ๊ป˜ํ•˜๋Š” ํŒ€์›๋“ค์€ ์ €๋งˆ๋‹ค์˜ ์ฝ”๋”ฉ์Šคํƒ€์ผ์„ ๊ฐ–๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋•Œ๋ฌธ์— ๊ฐ๊ฐ์˜ ์Šคํƒ€์ผ์„ ์šฉ์ธํ•œ ์ฑ„, ํ˜‘์—…์„ ํ•˜๊ฒŒ ๋˜๋ฉด ํ›—๋‚  ์ฝ”๋“œ๋ฅผ ๋ณ‘ํ•ฉํ•˜๋Š” ๊ณผ์ •์—์„œ ์ˆ˜๋งŽ์€ ๊ณจ์นซ๊ฑฐ๋ฆฌ๋ฅผ ์•ˆ์„ ์ˆ˜๊ฐ€ ์žˆ๊ฒ ์Šต๋‹ˆ๋‹ค. ๋ฌธ๋ฒ• ์—๋Ÿฌ๋ฅผ ์ฐพ์•„ ํ‘œ์‹œํ•ด์ค„ ๋ฟ ์•„๋‹ˆ๋ผ, ํ”„๋กœ์ ํŠธ๋ฅผ ๊ฐœ๋ณ„์ ์œผ๋กœ ๊ฐœ๋ฐœํ•  ๋•Œ์—๋Š” ๋†“์น  ์ˆ˜ ์žˆ์—ˆ๋˜, ์ฝ”๋”ฉ์Šคํƒ€์ผ์˜ ํ†ต์ผ-์ ๊ฒ€์„ ํ•ด์ฃผ๋Š” ESLint๋ฅผ ์†Œ๊ฐœํ•˜๊ณ , ์„ค์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ์ ‘๊ทผ 1. ESLint๋ž€? 2. ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ 3. ESLint ์„ค์น˜ 4. ESLint ์„ค์ • ๋ฐฉ๋ฒ• 1. "ESLint" ๋ž€? "ESLint"๋Š” JavaScript ์ฝ”๋“œ์—์„œ ๋ฐœ์ƒ๋œ ๋ฌธ์ œ(์—๋Ÿฌ) ํŒจํ„ด์„ ์‹๋ณ„ํ•˜๊ธฐ ์œ„ํ•œ ์ •์  ์ฝ”๋“œ ๋ถ„์„ ๋„๊ตฌ์ž…๋‹ˆ๋‹ค. - ESLint๋ฅผ ์„ค์ •ํ•ด ์ ์šฉํ•˜๋Š” ๊ฒƒ๋งŒ์œผ๋กœ๋„ ๋‹ค์ˆ˜์˜ ์†๊ธธ์„ ๊ฑฐ์นœ ํ”„๋กœ์ ํŠธ๊ฐ€ ๋งˆ์น˜ 1๋ช…์ด ๊ฐœ.. 2023. 2. 28.