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
@@ -1,12 +1,12 @@
import { useIntl } from 'react-intl'
import { useIntl } from "react-intl"
import { formatPrice } from '@scandic-hotels/common/utils/numberFormatting'
import { MaterialIcon } from '../../../../Icons/MaterialIcon'
import { Typography } from '../../../../Typography'
import { formatPrice } from "@scandic-hotels/common/utils/numberFormatting"
import { MaterialIcon } from "../../../../Icons/MaterialIcon"
import { Typography } from "../../../../Typography"
import HotelMarker from '../../../Markers/HotelMarker'
import HotelMarker from "../../../Markers/HotelMarker"
import styles from './hotelPin.module.css'
import styles from "./hotelPin.module.css"
interface HotelPinProps {
isActive: boolean
@@ -15,7 +15,7 @@ interface HotelPinProps {
hotelAdditionalPrice?: number
hotelAdditionalCurrency?: string
}
const NOT_AVAILABLE = '-'
const NOT_AVAILABLE = "-"
export function HotelPin({
isActive,
hotelPrice,
@@ -28,7 +28,7 @@ export function HotelPin({
return (
<div
className={`${styles.pin} ${isActive ? styles.active : ''}`}
className={`${styles.pin} ${isActive ? styles.active : ""}`}
data-hotelpin
>
<span className={styles.pinIcon}>
@@ -36,10 +36,10 @@ export function HotelPin({
<MaterialIcon
icon="calendar_clock"
size={16}
color={isActive ? 'Icon/Interactive/Default' : 'Icon/Inverted'}
color={isActive ? "Icon/Interactive/Default" : "Icon/Inverted"}
/>
) : (
<HotelMarker width={16} color={isActive ? 'burgundy' : 'white'} />
<HotelMarker width={16} color={isActive ? "burgundy" : "white"} />
)}
</span>
<Typography variant="Body/Paragraph/mdRegular">
@@ -2,16 +2,16 @@ import {
AdvancedMarker,
AdvancedMarkerAnchorPoint,
InfoWindow,
} from '@vis.gl/react-google-maps'
import { useMediaQuery } from 'usehooks-ts'
} from "@vis.gl/react-google-maps"
import { useMediaQuery } from "usehooks-ts"
import { CurrencyEnum } from '@scandic-hotels/common/constants/currency'
import { Lang } from '@scandic-hotels/common/constants/language'
import { useIntl } from 'react-intl'
import { StandaloneHotelCardDialog } from '../../../HotelCard/HotelDialogCard/StandaloneHotelCardDialog'
import type { HotelPin as HotelPinType } from '../../types'
import styles from './hotelListingMapContent.module.css'
import { HotelPin } from './HotelPin'
import { CurrencyEnum } from "@scandic-hotels/common/constants/currency"
import { Lang } from "@scandic-hotels/common/constants/language"
import { useIntl } from "react-intl"
import { StandaloneHotelCardDialog } from "../../../HotelCard/HotelDialogCard/StandaloneHotelCardDialog"
import type { HotelPin as HotelPinType } from "../../types"
import styles from "./hotelListingMapContent.module.css"
import { HotelPin } from "./HotelPin"
export type HotelListingMapContentProps = {
hotelPins: HotelPinType[]
@@ -38,7 +38,7 @@ export function HotelListingMapContent({
pointsCurrency,
}: HotelListingMapContentProps) {
const intl = useIntl()
const isDesktop = useMediaQuery('(min-width: 900px)')
const isDesktop = useMediaQuery("(min-width: 900px)")
const toggleActiveHotelPin = (
args: { hotelName: string; hotelId: string } | null
@@ -66,8 +66,8 @@ export function HotelListingMapContent({
const pinCurrency = pin.redemptionPrice
? intl.formatMessage({
id: 'common.points',
defaultMessage: 'Points',
id: "common.points",
defaultMessage: "Points",
})
: pin.currency