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,28 +1,28 @@
import { ParkingPricePeriods } from '../parkingInformationTypes'
import { ParkingPricePeriods } from "../parkingInformationTypes"
import type { IntlShape } from 'react-intl'
import type { IntlShape } from "react-intl"
export function getPeriod(intl: IntlShape, period?: string) {
switch (period) {
case ParkingPricePeriods.hour:
return intl.formatMessage({
id: 'parkingInformation.pricePerHour',
defaultMessage: 'Price per hour',
id: "parkingInformation.pricePerHour",
defaultMessage: "Price per hour",
})
case ParkingPricePeriods.day:
return intl.formatMessage({
id: 'parkingInformation.pricePerDay',
defaultMessage: 'Price per day',
id: "parkingInformation.pricePerDay",
defaultMessage: "Price per day",
})
case ParkingPricePeriods.night:
return intl.formatMessage({
id: 'parkingInformation.pricePerNight',
defaultMessage: 'Price per night',
id: "parkingInformation.pricePerNight",
defaultMessage: "Price per night",
})
case ParkingPricePeriods.allDay:
return intl.formatMessage({
id: 'parkingInformation.pricePer24Hours',
defaultMessage: 'Price per 24 hours',
id: "parkingInformation.pricePer24Hours",
defaultMessage: "Price per 24 hours",
})
default:
return period