diff --git a/packages/meta-tags/src/utils.ts b/packages/meta-tags/src/utils.ts index 75bb869d5c..89ed479cd8 100644 --- a/packages/meta-tags/src/utils.ts +++ b/packages/meta-tags/src/utils.ts @@ -45,8 +45,8 @@ function filterValidValue(originObj: T): T { [key]: isObject(value) ? filterValidValue(value) : isArrayOfObject(value) - ? value.map((item: object) => filterValidValue(item)) - : value, + ? value.map((item: object) => filterValidValue(item)) + : value, }), {} as T, ) diff --git a/packages/tds-ui/src/components/rating/rating.tsx b/packages/tds-ui/src/components/rating/rating.tsx index 7e0b069c4d..9d46ab4e6a 100644 --- a/packages/tds-ui/src/components/rating/rating.tsx +++ b/packages/tds-ui/src/components/rating/rating.tsx @@ -38,8 +38,8 @@ const RatingStar = styled.span<{ background-image: url(${IMAGE_PREFIXES[size]}-${full ? 'full' : half - ? 'half' - : 'empty'}@4x.png); + ? 'half' + : 'empty'}@4x.png); `}; ` diff --git a/packages/tds-ui/src/components/text/text.tsx b/packages/tds-ui/src/components/text/text.tsx index bd270e0076..e7d887d763 100644 --- a/packages/tds-ui/src/components/text/text.tsx +++ b/packages/tds-ui/src/components/text/text.tsx @@ -52,20 +52,20 @@ export const Text = styled.div( display: props.inlineBlock ? 'inline-block' : props.inline - ? 'inline' - : undefined, + ? 'inline' + : undefined, float: props.floated ?? 'none', fontWeight: props.bold ? 'bold' : 500, textAlign: props.textAlign ? props.textAlign : props.center - ? 'center' - : undefined, + ? 'center' + : undefined, textDecoration: props.strikethrough ? 'line-through' : props.underline - ? 'underline' - : undefined, + ? 'underline' + : undefined, whiteSpace: props.whiteSpace ?? 'pre-line', wordBreak: props.wordBreak, }), diff --git a/packages/tds-widget/src/chat/bubble/bubble-ui.tsx b/packages/tds-widget/src/chat/bubble/bubble-ui.tsx index bc097fbcf4..5edc0f0e94 100644 --- a/packages/tds-widget/src/chat/bubble/bubble-ui.tsx +++ b/packages/tds-widget/src/chat/bubble/bubble-ui.tsx @@ -108,8 +108,8 @@ export default function BubbleUI({ (unfriended ? ALTERNATIVE_TEXT_MESSAGE.unfriended : blinded - ? ALTERNATIVE_TEXT_MESSAGE.blinded - : ALTERNATIVE_TEXT_MESSAGE.deleted) + ? ALTERNATIVE_TEXT_MESSAGE.blinded + : ALTERNATIVE_TEXT_MESSAGE.deleted) } textColor={alteredTextColor} hasArrow={hasArrow} diff --git a/packages/tds-widget/src/chat/bubble/image.tsx b/packages/tds-widget/src/chat/bubble/image.tsx index afb5ffd226..5d8e096dcf 100644 --- a/packages/tds-widget/src/chat/bubble/image.tsx +++ b/packages/tds-widget/src/chat/bubble/image.tsx @@ -60,16 +60,16 @@ export function ImageBubble({ images.length === 2 || images.length === 4 ? { height: 121, width: 121 } : imagesInRow.length > 1 - ? { height: 79, width: 79, flexGrow: 1 } - : { - width: Math.min(MAX_IMAGE_WIDTH, image.width), - height: Math.min( - Math.floor( - (MAX_IMAGE_WIDTH * image.height) / image.width, + ? { height: 79, width: 79, flexGrow: 1 } + : { + width: Math.min(MAX_IMAGE_WIDTH, image.width), + height: Math.min( + Math.floor( + (MAX_IMAGE_WIDTH * image.height) / image.width, + ), + image.height, ), - image.height, - ), - } + } } /> ))} diff --git a/packages/tds-widget/src/chat/messages.tsx b/packages/tds-widget/src/chat/messages.tsx index 7f7f61a246..f3b749b107 100644 --- a/packages/tds-widget/src/chat/messages.tsx +++ b/packages/tds-widget/src/chat/messages.tsx @@ -107,8 +107,8 @@ export default function Messages< sender.unfriended ? ALTERNATIVE_TEXT_MESSAGE.unfriended : blinded - ? ALTERNATIVE_TEXT_MESSAGE.blinded - : ALTERNATIVE_TEXT_MESSAGE.deleted + ? ALTERNATIVE_TEXT_MESSAGE.blinded + : ALTERNATIVE_TEXT_MESSAGE.deleted } textColor={ my diff --git a/packages/tds-widget/src/poi-detail/image-carousel/note.tsx b/packages/tds-widget/src/poi-detail/image-carousel/note.tsx index 64c987d2d2..a4c0af8fc0 100644 --- a/packages/tds-widget/src/poi-detail/image-carousel/note.tsx +++ b/packages/tds-widget/src/poi-detail/image-carousel/note.tsx @@ -77,8 +77,8 @@ export function BusinessHoursNote({ {currentBusinessHours ? t('영업중 {{todayBusinessHours}}', { todayBusinessHours }) : todayBusinessHours - ? t('영업준비중 {{todayBusinessHours}}', { todayBusinessHours }) - : t('휴무일')} + ? t('영업준비중 {{todayBusinessHours}}', { todayBusinessHours }) + : t('휴무일')} ) diff --git a/packages/tds-widget/src/poi-list-elements/extended-poi-list-element.tsx b/packages/tds-widget/src/poi-list-elements/extended-poi-list-element.tsx index 41f8ae80c1..bc467f7cd6 100644 --- a/packages/tds-widget/src/poi-list-elements/extended-poi-list-element.tsx +++ b/packages/tds-widget/src/poi-list-elements/extended-poi-list-element.tsx @@ -81,8 +81,8 @@ export function ExtendedPoiListElement({ starRating ? t('{{starRating}}성급', { starRating }) : category - ? category.name - : null, + ? category.name + : null, area ? area.name : vicinity, ] ) diff --git a/packages/tds-widget/src/replies/guide-text.tsx b/packages/tds-widget/src/replies/guide-text.tsx index 41563a4575..868a5b4518 100644 --- a/packages/tds-widget/src/replies/guide-text.tsx +++ b/packages/tds-widget/src/replies/guide-text.tsx @@ -41,10 +41,10 @@ export function GuideText() { mentioningUserName, }) : currentMessageId === parentMessageId - ? t('댓글 수정 중') - : t('{{mentioningUserName}}님에게 작성한 답글 수정 중', { - mentioningUserName, - })} + ? t('댓글 수정 중') + : t('{{mentioningUserName}}님에게 작성한 답글 수정 중', { + mentioningUserName, + })} diff --git a/packages/tds-widget/src/scrap/use-scrap.ts b/packages/tds-widget/src/scrap/use-scrap.ts index 184283b786..cd11b141da 100644 --- a/packages/tds-widget/src/scrap/use-scrap.ts +++ b/packages/tds-widget/src/scrap/use-scrap.ts @@ -66,8 +66,8 @@ export function useScrap() { scraped === currentState ? scrapsCount : currentState - ? scrapsCount + 1 - : scrapsCount - 1, + ? scrapsCount + 1 + : scrapsCount - 1, } }, [scraps, updating], diff --git a/packages/triple-document/src/elements/itinerary/use-computed-itineraries.ts b/packages/triple-document/src/elements/itinerary/use-computed-itineraries.ts index 4d1643b9a5..031b7eae09 100644 --- a/packages/triple-document/src/elements/itinerary/use-computed-itineraries.ts +++ b/packages/triple-document/src/elements/itinerary/use-computed-itineraries.ts @@ -72,8 +72,8 @@ export default function useItinerary({ itinerary, guestMode }: Props) { regionId && source?.regionId && source?.areas && source.areas.length > 0 ? source.areas.map((area) => area.name).join(',') : guestMode === 'seoul-con' - ? null - : source?.vicinity + ? null + : source?.vicinity const description = [categoryNames, areaNames] .filter((i) => i) diff --git a/packages/view-utilities/src/derive-current-state-and-count.ts b/packages/view-utilities/src/derive-current-state-and-count.ts index 07a86e911a..7bd1506d3e 100644 --- a/packages/view-utilities/src/derive-current-state-and-count.ts +++ b/packages/view-utilities/src/derive-current-state-and-count.ts @@ -21,7 +21,7 @@ export function deriveCurrentStateAndCount({ initialState === currentState ? initialCount : currentState - ? Number(initialCount || 0) + 1 - : Number(initialCount || 0) - 1, + ? Number(initialCount || 0) + 1 + : Number(initialCount || 0) - 1, } }