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,22 +1,22 @@
import type { Meta, StoryObj } from '@storybook/nextjs-vite'
import { Alert } from './index'
import { AlertTypeEnum } from '@scandic-hotels/common/constants/alert'
import { expect, fn } from 'storybook/test'
import type { Meta, StoryObj } from "@storybook/nextjs-vite"
import { Alert } from "./index"
import { AlertTypeEnum } from "@scandic-hotels/common/constants/alert"
import { expect, fn } from "storybook/test"
const meta: Meta<typeof Alert> = {
title: 'Core Components/Alert',
title: "Core Components/Alert",
component: Alert,
parameters: {
layout: 'centered',
layout: "centered",
},
tags: ['autodocs'],
tags: ["autodocs"],
argTypes: {
variant: {
control: { type: 'select' },
options: ['banner', 'inline'],
control: { type: "select" },
options: ["banner", "inline"],
},
type: {
control: { type: 'select' },
control: { type: "select" },
options: Object.values(AlertTypeEnum),
},
close: {
@@ -32,43 +32,43 @@ type Story = StoryObj<typeof meta>
export const Default: Story = {
args: {
variant: 'inline',
variant: "inline",
type: AlertTypeEnum.Info,
heading: 'Heading',
text: 'Caramels danish jelly-o pudding tart croissant. Pie cotton candy jujubes carrot cake gummies. Apple pie cake chocolate bar halvah tootsie roll bonbon cheesecake. Brownie dessert macaroon bear claw pastry.',
heading: "Heading",
text: "Caramels danish jelly-o pudding tart croissant. Pie cotton candy jujubes carrot cake gummies. Apple pie cake chocolate bar halvah tootsie roll bonbon cheesecake. Brownie dessert macaroon bear claw pastry.",
close: undefined,
ariaRole: 'alert',
ariaRole: "alert",
},
play: async ({ canvas }) => {
canvas.findByRole('alert')
canvas.findByRole("alert")
},
}
export const Closable: Story = {
args: {
variant: 'inline',
variant: "inline",
type: AlertTypeEnum.Info,
heading: 'Heading',
text: 'Caramels danish jelly-o pudding tart croissant. Pie cotton candy jujubes carrot cake gummies. Apple pie cake chocolate bar halvah tootsie roll bonbon cheesecake. Brownie dessert macaroon bear claw pastry.',
heading: "Heading",
text: "Caramels danish jelly-o pudding tart croissant. Pie cotton candy jujubes carrot cake gummies. Apple pie cake chocolate bar halvah tootsie roll bonbon cheesecake. Brownie dessert macaroon bear claw pastry.",
close: fn(),
},
play: async ({ canvas, userEvent, args }) => {
await userEvent.click(await canvas.findByRole('button'))
await userEvent.click(await canvas.findByRole("button"))
expect(args.close).toHaveBeenCalledTimes(1)
},
}
export const WithPhonenumber: Story = {
args: {
variant: 'inline',
variant: "inline",
type: AlertTypeEnum.Info,
heading: 'Heading',
text: 'Caramels danish jelly-o pudding tart croissant. Pie cotton candy jujubes carrot cake gummies. Apple pie cake chocolate bar halvah tootsie roll bonbon cheesecake. Brownie dessert macaroon bear claw pastry.',
heading: "Heading",
text: "Caramels danish jelly-o pudding tart croissant. Pie cotton candy jujubes carrot cake gummies. Apple pie cake chocolate bar halvah tootsie roll bonbon cheesecake. Brownie dessert macaroon bear claw pastry.",
close: fn(),
phoneContact: {
displayText: 'Call us:',
phoneNumber: '+4685551234',
footnote: 'Available 24/7',
displayText: "Call us:",
phoneNumber: "+4685551234",
footnote: "Available 24/7",
},
},
}