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,24 +1,24 @@
import type { Meta, StoryObj } from '@storybook/nextjs-vite'
import RegularRateCard from '.'
import type { Meta, StoryObj } from "@storybook/nextjs-vite"
import RegularRateCard from "."
const meta: Meta<typeof RegularRateCard> = {
title: 'Product Components/RateCard/Regular',
title: "Product Components/RateCard/Regular",
component: RegularRateCard,
decorators: [
(Story) => (
<div style={{ maxWidth: '400px' }}>
<div style={{ maxWidth: "400px" }}>
<Story />
</div>
),
],
argTypes: {
rateTitle: { control: 'text' },
paymentTerm: { control: 'text' },
rate: { control: 'object' },
memberRate: { control: 'object' },
omnibusRate: { control: 'object' },
approximateRate: { control: 'object' },
rateTermDetails: { control: 'object' },
rateTitle: { control: "text" },
paymentTerm: { control: "text" },
rate: { control: "object" },
memberRate: { control: "object" },
omnibusRate: { control: "object" },
approximateRate: { control: "object" },
rateTermDetails: { control: "object" },
},
}
@@ -28,32 +28,32 @@ type Story = StoryObj<typeof RegularRateCard>
export const Default: Story = {
args: {
rateTitle: 'FREE CANCELLATION',
paymentTerm: 'PAY NOW',
rateTitle: "FREE CANCELLATION",
paymentTerm: "PAY NOW",
rate: {
label: 'Standard Price',
price: '1980',
unit: 'SEK/NIGHT',
label: "Standard Price",
price: "1980",
unit: "SEK/NIGHT",
},
memberRate: {
label: 'Member Price',
price: '1900',
unit: 'SEK/NIGHT',
label: "Member Price",
price: "1900",
unit: "SEK/NIGHT",
},
approximateRate: {
price: '198',
label: 'Approx.',
unit: 'EUR',
price: "198",
label: "Approx.",
unit: "EUR",
},
omnibusRate: {
label: 'Lowest past price (last 30 days)',
price: '1690',
unit: 'SEK/NIGHT',
label: "Lowest past price (last 30 days)",
price: "1690",
unit: "SEK/NIGHT",
},
rateTermDetails: [
{
title: 'Rate definition 1',
terms: ['term 1', 'term 2', 'term 3'],
title: "Rate definition 1",
terms: ["term 1", "term 2", "term 3"],
},
],
},
@@ -62,27 +62,27 @@ export const Default: Story = {
export const Selected: Story = {
args: {
isSelected: true,
rateTitle: 'FREE CANCELLATION',
paymentTerm: 'PAY NOW',
rateTitle: "FREE CANCELLATION",
paymentTerm: "PAY NOW",
rate: {
label: 'Standard Price',
price: '1980',
unit: 'SEK/NIGHT',
label: "Standard Price",
price: "1980",
unit: "SEK/NIGHT",
},
memberRate: {
label: 'Member Price',
price: '1900',
unit: 'SEK/NIGHT',
label: "Member Price",
price: "1900",
unit: "SEK/NIGHT",
},
approximateRate: {
price: '198',
label: 'Approx.',
unit: 'EUR',
price: "198",
label: "Approx.",
unit: "EUR",
},
rateTermDetails: [
{
title: 'Rate definition 1',
terms: ['term 1', 'term 2', 'term 3'],
title: "Rate definition 1",
terms: ["term 1", "term 2", "term 3"],
},
],
},
@@ -90,28 +90,28 @@ export const Selected: Story = {
export const MemberRateActive: Story = {
args: {
rateTitle: 'FREE CANCELLATION',
paymentTerm: 'PAY NOW',
rateTitle: "FREE CANCELLATION",
paymentTerm: "PAY NOW",
rate: {
label: 'Standard Price',
price: '1980',
unit: 'SEK',
label: "Standard Price",
price: "1980",
unit: "SEK",
},
memberRate: {
label: 'Member Price',
price: '1900',
unit: 'SEK/NIGHT',
label: "Member Price",
price: "1900",
unit: "SEK/NIGHT",
},
approximateRate: {
price: '190',
label: 'Approx.',
unit: 'EUR',
price: "190",
label: "Approx.",
unit: "EUR",
},
isMemberRateActive: true,
rateTermDetails: [
{
title: 'Rate definition 1',
terms: ['term 1', 'term 2', 'term 3'],
title: "Rate definition 1",
terms: ["term 1", "term 2", "term 3"],
},
],
},

View File

@@ -1,14 +1,14 @@
import { Rate, RateTermDetails } from '../types'
import { Rate, RateTermDetails } from "../types"
import { cx } from 'class-variance-authority'
import { Button as ButtonRAC } from 'react-aria-components'
import { useIntl } from 'react-intl'
import { IconButton } from '../../IconButton'
import { MaterialIcon } from '../../Icons/MaterialIcon'
import { Typography } from '../../Typography'
import Modal from '../Modal'
import styles from '../rate-card.module.css'
import { variants } from '../variants'
import { cx } from "class-variance-authority"
import { Button as ButtonRAC } from "react-aria-components"
import { useIntl } from "react-intl"
import { IconButton } from "../../IconButton"
import { MaterialIcon } from "../../Icons/MaterialIcon"
import { Typography } from "../../Typography"
import Modal from "../Modal"
import styles from "../rate-card.module.css"
import { variants } from "../variants"
interface RegularRateCardProps {
id: string
@@ -39,7 +39,7 @@ export default function RegularRateCard({
handleChange,
rateTermDetails,
}: RegularRateCardProps) {
const classNames = variants({ variant: 'Regular' })
const classNames = variants({ variant: "Regular" })
const intl = useIntl()
@@ -69,8 +69,8 @@ export default function RegularRateCard({
size="sm"
className={styles.triggerButton}
aria-label={intl.formatMessage({
id: 'selectRate.rateCard.openReservationPolicy',
defaultMessage: 'Open reservation policy',
id: "selectRate.rateCard.openReservationPolicy",
defaultMessage: "Open reservation policy",
})}
iconName="info"
/>