Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
drakang4 committed Apr 24, 2024
1 parent fae7f10 commit b118242
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 39 deletions.
4 changes: 2 additions & 2 deletions packages/meta-tags/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ function filterValidValue<T extends object>(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,
)
Expand Down
4 changes: 2 additions & 2 deletions packages/tds-ui/src/components/rating/rating.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
`};
`

Expand Down
12 changes: 6 additions & 6 deletions packages/tds-ui/src/components/text/text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,20 @@ export const Text = styled.div<TextProps>(
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,
}),
Expand Down
4 changes: 2 additions & 2 deletions packages/tds-widget/src/chat/bubble/bubble-ui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
18 changes: 9 additions & 9 deletions packages/tds-widget/src/chat/bubble/image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
}
}
}
/>
))}
Expand Down
4 changes: 2 additions & 2 deletions packages/tds-widget/src/chat/messages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/tds-widget/src/poi-detail/image-carousel/note.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ export function BusinessHoursNote({
{currentBusinessHours
? t('영업중 {{todayBusinessHours}}', { todayBusinessHours })
: todayBusinessHours
? t('영업준비중 {{todayBusinessHours}}', { todayBusinessHours })
: t('휴무일')}
? t('영업준비중 {{todayBusinessHours}}', { todayBusinessHours })
: t('휴무일')}
</Text>
</NoteContainer>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ export function ExtendedPoiListElement<T extends PoiListElementType>({
starRating
? t('{{starRating}}성급', { starRating })
: category
? category.name
: null,
? category.name
: null,
area ? area.name : vicinity,
]
)
Expand Down
8 changes: 4 additions & 4 deletions packages/tds-widget/src/replies/guide-text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ export function GuideText() {
mentioningUserName,
})
: currentMessageId === parentMessageId
? t('댓글 수정 중')
: t('{{mentioningUserName}}님에게 작성한 답글 수정 중', {
mentioningUserName,
})}
? t('댓글 수정 중')
: t('{{mentioningUserName}}님에게 작성한 답글 수정 중', {
mentioningUserName,
})}
</Text>

<Icon
Expand Down
4 changes: 2 additions & 2 deletions packages/tds-widget/src/replies/list/reply.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ export function Reply({
? t('내 답글')
: t('내 댓글')
: parentId
? t('답글')
: t('댓글')
? t('답글')
: t('댓글')
}
actionSheetHash={`${HASH_MORE_ACTION_SHEET}.${id}`}
onEditClick={() =>
Expand Down
4 changes: 2 additions & 2 deletions packages/tds-widget/src/scrap/use-scrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export function useScrap() {
scraped === currentState
? scrapsCount
: currentState
? scrapsCount + 1
: scrapsCount - 1,
? scrapsCount + 1
: scrapsCount - 1,
}
},
[scraps, updating],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions packages/view-utilities/src/derive-current-state-and-count.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

0 comments on commit b118242

Please sign in to comment.