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,25 +1,25 @@
import type { Meta, StoryObj } from '@storybook/nextjs-vite'
import { HotelCard } from './index'
import type { Meta, StoryObj } from "@storybook/nextjs-vite"
import { HotelCard } from "./index"
import { RateTypeEnum } from '@scandic-hotels/common/constants/rateType'
import { fn } from 'storybook/test'
import { Button } from '../Button'
import { MaterialIcon } from '../Icons/MaterialIcon'
import { RateTypeEnum } from "@scandic-hotels/common/constants/rateType"
import { fn } from "storybook/test"
import { Button } from "../Button"
import { MaterialIcon } from "../Icons/MaterialIcon"
const meta: Meta<typeof HotelCard> = {
title: 'Product Components/HotelCard/HotelCard',
title: "Product Components/HotelCard/HotelCard",
component: HotelCard,
argTypes: {
state: {
control: {
type: 'select',
options: ['default', 'active'],
type: "select",
options: ["default", "active"],
},
},
type: {
control: {
type: 'select',
options: ['mapListing', 'pageListing'],
type: "select",
options: ["mapListing", "pageListing"],
},
},
},
@@ -32,11 +32,11 @@ type Story = StoryObj<typeof HotelCard>
export const Default: Story = {
args: {
hotel: {
id: '1',
name: 'Test Hotel',
address: { streetAddress: '123 Test Street', city: 'Test City' },
description: 'A great place to stay.',
hotelType: 'signature',
id: "1",
name: "Test Hotel",
address: { streetAddress: "123 Test Street", city: "Test City" },
description: "A great place to stay.",
hotelType: "signature",
detailedFacilities: [],
ratings: {
tripAdvisor: 4,
@@ -46,7 +46,7 @@ export const Default: Story = {
public: {
rateType: RateTypeEnum.Regular,
localPrice: {
currency: 'SEK',
currency: "SEK",
pricePerNight: 1000,
pricePerStay: 1000,
},
@@ -54,24 +54,24 @@ export const Default: Story = {
member: {
rateType: RateTypeEnum.Regular,
localPrice: {
currency: 'SEK',
currency: "SEK",
pricePerNight: 800,
pricePerStay: 800,
},
},
},
state: 'default',
state: "default",
isAlternative: false,
isPartnerBrand: false,
type: 'pageListing',
type: "pageListing",
isUserLoggedIn: false,
distanceToCityCenter: 0,
bookingCode: 'ABC123',
bookingCode: "ABC123",
images: [
{
src: 'img/img2.jpg',
alt: 'Alt text',
caption: 'Caption',
src: "img/img2.jpg",
alt: "Alt text",
caption: "Caption",
},
],
@@ -92,7 +92,7 @@ export const Default: Story = {
export const MapListing: Story = {
args: {
...Default.args,
type: 'mapListing',
type: "mapListing",
},
}