Closed nakyeonko3 closed 3 months ago
/* HTML */
attendancesListItemTamplate({ name, type, content, profileImg }) { return /* HTML */ ` <li class="attendance-item"> <img src="${profileImg || this.defaultProfileImg}" alt="profile image" srcset="" /> <div class="l-attendance-item"> <div class="attendance-item__status"> <h2 class="${this.attendanceType[type] || ''}">${type}</h2> <p>${content || '신청합니다.'}</p> </div> <div class="attendance-item__name"> <p>${name || ''}</p> </div> </div> </li> `; }
Problem
Solution
/* HTML */
코드를 넣어주면 prettier 포맷팅 대상이 되서 코드가 이쁘게 정렬됨.