Merged in fix/3697-prettier-configs (pull request #3396)

fix(SW-3691): Setup one prettier config for whole repo

* Setup prettierrc in root and remove other configs


Approved-by: Joakim Jäderberg
Approved-by: Linus Flood
This commit is contained in:
Rasmus Langvad
2026-01-07 12:45:50 +00:00
parent 932413412b
commit d0546926a9
500 changed files with 18367 additions and 18419 deletions

View File

@@ -1,12 +1,12 @@
import type { Meta, StoryObj } from '@storybook/nextjs-vite'
import { StandaloneHotelCardDialog } from './index'
import type { Meta, StoryObj } from "@storybook/nextjs-vite"
import { StandaloneHotelCardDialog } from "./index"
import { Lang } from '@scandic-hotels/common/constants/language'
import { fn } from 'storybook/test'
import { hotelPins } from '../../../Map/InteractiveMap/storybookData'
import { Lang } from "@scandic-hotels/common/constants/language"
import { fn } from "storybook/test"
import { hotelPins } from "../../../Map/InteractiveMap/storybookData"
const meta: Meta<typeof StandaloneHotelCardDialog> = {
title: 'Product Components/HotelCard/StandaloneHotelCardDialog',
title: "Product Components/HotelCard/StandaloneHotelCardDialog",
component: StandaloneHotelCardDialog,
argTypes: {},
}

View File

@@ -1,24 +1,24 @@
'use client'
"use client"
import { useState } from 'react'
import { useIntl } from 'react-intl'
import { useState } from "react"
import { useIntl } from "react-intl"
import { IconButton } from '../../../IconButton'
import { Typography } from '../../../Typography'
import { IconButton } from "../../../IconButton"
import { Typography } from "../../../Typography"
import { HotelCardDialogImage } from '../../HotelCardDialogImage'
import { NoPriceAvailableCard } from '../../NoPriceAvailableCard'
import { HotelCardDialogImage } from "../../HotelCardDialogImage"
import { NoPriceAvailableCard } from "../../NoPriceAvailableCard"
import { CurrencyEnum } from '@scandic-hotels/common/constants/currency'
import { Lang } from '@scandic-hotels/common/constants/language'
import { selectRate } from '@scandic-hotels/common/constants/routes/hotelReservation'
import { useUrlWithSearchParam } from '@scandic-hotels/common/hooks/useUrlWithSearchParam'
import ButtonLink from '../../../ButtonLink'
import { FacilityToIcon } from '../../../FacilityToIcon'
import { HotelPin } from '../../../Map/types'
import { HotelPointsRow } from '../../HotelPointsRow'
import { RoomPrice } from '../../RoomPrice'
import styles from './standaloneHotelCardDialog.module.css'
import { CurrencyEnum } from "@scandic-hotels/common/constants/currency"
import { Lang } from "@scandic-hotels/common/constants/language"
import { selectRate } from "@scandic-hotels/common/constants/routes/hotelReservation"
import { useUrlWithSearchParam } from "@scandic-hotels/common/hooks/useUrlWithSearchParam"
import ButtonLink from "../../../ButtonLink"
import { FacilityToIcon } from "../../../FacilityToIcon"
import { HotelPin } from "../../../Map/types"
import { HotelPointsRow } from "../../HotelPointsRow"
import { RoomPrice } from "../../RoomPrice"
import styles from "./standaloneHotelCardDialog.module.css"
interface StandaloneHotelCardProps {
lang: Lang
@@ -55,13 +55,13 @@ export function StandaloneHotelCardDialog({
} = data
const notEnoughPointsLabel = intl.formatMessage({
id: 'booking.notEnoughPoints',
defaultMessage: 'Not enough points',
id: "booking.notEnoughPoints",
defaultMessage: "Not enough points",
})
const shouldShowNotEnoughPoints = redemptionPrice && !hasEnoughPoints
const selectRateUrl = useUrlWithSearchParam(
{ key: 'hotel', value: operaId },
{ key: "hotel", value: operaId },
selectRate(lang)
)
const showPriceCard = !!(
@@ -80,8 +80,8 @@ export function StandaloneHotelCardDialog({
className={styles.closeButton}
onPress={handleClose}
aria-label={intl.formatMessage({
id: 'common.close',
defaultMessage: 'Close',
id: "common.close",
defaultMessage: "Close",
})}
iconName="close"
/>
@@ -119,12 +119,12 @@ export function StandaloneHotelCardDialog({
<p>
{redemptionPrice
? intl.formatMessage({
id: 'hotelCard.availableRates',
defaultMessage: 'Available rates',
id: "hotelCard.availableRates",
defaultMessage: "Available rates",
})
: intl.formatMessage({
id: 'common.from',
defaultMessage: 'From',
id: "common.from",
defaultMessage: "From",
})}
</p>
</Typography>
@@ -189,8 +189,8 @@ export function StandaloneHotelCardDialog({
onClick={onClick}
>
{intl.formatMessage({
id: 'common.seeRooms',
defaultMessage: 'See rooms',
id: "common.seeRooms",
defaultMessage: "See rooms",
})}
</ButtonLink>
)}