Merged in chore/eslint-curly-braces (pull request #3304)

Chore/eslint curly braces

* Add eslint rule for curly braces

* run eslint --fix for all files


Approved-by: Linus Flood
This commit is contained in:
Joakim Jäderberg
2025-12-08 07:56:21 +00:00
parent 5986828580
commit de4b3c1c3c
54 changed files with 139 additions and 104 deletions

View File

@@ -7,27 +7,27 @@ export function HotelCardSkeleton() {
<article className={styles.card}>
{/* image container */}
<div className={styles.imageContainer}>
<SkeletonShimmer width={'100%'} height="100%" />
<SkeletonShimmer width="100%" height="100%" />
</div>
<div className={styles.content}>
<SkeletonShimmer height={'65px'} />
<SkeletonShimmer height="65px" />
<div className={styles.text}>
<SkeletonShimmer height={'20px'} />
<SkeletonShimmer height={'20px'} />
<SkeletonShimmer height={'20px'} />
<SkeletonShimmer height={'20px'} />
<SkeletonShimmer height="20px" />
<SkeletonShimmer height="20px" />
<SkeletonShimmer height="20px" />
<SkeletonShimmer height="20px" />
</div>
<SkeletonShimmer height={'56px'} />
<SkeletonShimmer height={'52px'} width={'150px'} />
<SkeletonShimmer height="56px" />
<SkeletonShimmer height="52px" width="150px" />
</div>
<div className={styles.priceVariants}>
{/* price variants */}
{Array.from({ length: 2 }).map((_, index) => (
<SkeletonShimmer key={index} height={'100px'} />
<SkeletonShimmer key={index} height="100px" />
))}
<SkeletonShimmer height={'40px'} />
<SkeletonShimmer height="40px" />
</div>
</article>
)

View File

@@ -40,8 +40,9 @@ export default function HotelChequeCard({
</Subtitle>
<Caption color="uiTextHighContrast">{CurrencyEnum.CC}</Caption>
{productTypeCheque.localPrice.additionalPricePerStay > 0 ? (
// eslint-disable-next-line formatjs/no-literal-string-in-jsx
<>
{'+'}
+
<Subtitle type="two" color="uiTextHighContrast">
{productTypeCheque.localPrice.additionalPricePerStay}
</Subtitle>
@@ -61,7 +62,7 @@ export default function HotelChequeCard({
defaultMessage: 'Approx.',
})}
</Caption>
<Caption color={'uiTextMediumContrast'}>
<Caption color="uiTextMediumContrast">
{productTypeCheque.requestedPrice.numberOfCheques} {CurrencyEnum.CC}
{productTypeCheque.requestedPrice.additionalPricePerStay
? // eslint-disable-next-line formatjs/no-literal-string-in-jsx