# Vue Fragments eslint μ—λŸ¬ ν•΄κ²°

κΈ°μ‘΄ Vue2 μ—μ„œλŠ” μ•„λž˜ μ˜ˆμ‹œμ™€ 같이 μ»΄ν¬λ„ŒνŠΈλ₯Ό λ°˜λ“œμ‹œ ν•œκ°œμ˜ Root Element 둜 κ°μ‹Έμ£Όμ–΄μ•Όν–ˆλ‹€.

// vue 2
<template>
  <div>
    <h1>Hello, world!</h1>
    <p>Lorem Ipsum is simply dummy text of the printing ..</p>
  </div>
</template>
1
2
3
4
5
6
7

ν•˜μ§€λ§Œ Vue3 μ—μ„œλŠ” ν•˜λ‚˜μ˜ Root Element둜 감싸주지 μ•Šμ•„λ„ λœλ‹€.

// vue 3
<template>
  <h1>Hello, world!</h1>
  <p>Lorem Ipsum is simply dummy text of the printing ..</p>
</template>
1
2
3
4
5

Vue2 eslint ν™•μž₯ ν”„λ‘œκ·Έλž¨μ΄ μ„€μΉ˜ λ˜μ–΄μžˆλ‹€λ©΄ ν”„λ‘œμ νŠΈμ—μ„œ λΉ¨κ°„ λ°‘μ€„λ‘œ μ—λŸ¬κ°€ λœ¨λŠ”κ²ƒμ„ 확인 ν•  수 μžˆλŠ”λ°,

μ΄λŠ” package.json 의 eslintConfig μ˜΅μ…˜μ— μ•„λž˜ μ½”λ“œλ₯Ό μΆ”κ°€ν•΄μ€€ ν›„ VSCode λ₯Ό μž¬μ‹œμž‘ν•˜λ©΄ 밑쀄이 사라진 것을 확인할 수 μžˆλ‹€.

Last Updated: 2022. 6. 5. μ˜€ν›„ 3:42:39