diff --git a/package.json b/package.json index 75c5fa4786..5de06210ed 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,7 @@ "npm-run-all": "4.1.5", "playwright": "1.40.1", "postcss": "8.4.33", - "prettier": "3.1.1", + "prettier": "3.2.2", "react": "18.2.0", "react-dom": "^18.2.0", "rollup-plugin-postcss-lit": "2.1.0", diff --git a/src/components/navigation/navigation-section/navigation-section.stories.ts b/src/components/navigation/navigation-section/navigation-section.stories.ts index dd4f988fda..2d2fa21699 100644 --- a/src/components/navigation/navigation-section/navigation-section.stories.ts +++ b/src/components/navigation/navigation-section/navigation-section.stories.ts @@ -20,8 +20,8 @@ import '../navigation'; const playStory = async (trigger: string, canvasElement: HTMLElement): Promise => { const canvas = within(canvasElement); - await waitForComponentsReady( - () => canvas.getByTestId('navigation').shadowRoot?.querySelector('.sbb-navigation'), + await waitForComponentsReady(() => + canvas.getByTestId('navigation').shadowRoot?.querySelector('.sbb-navigation'), ); const button = canvas.getByTestId('navigation-trigger'); diff --git a/src/components/navigation/navigation/navigation.stories.ts b/src/components/navigation/navigation/navigation.stories.ts index 6911a9121f..bde55c1073 100644 --- a/src/components/navigation/navigation/navigation.stories.ts +++ b/src/components/navigation/navigation/navigation.stories.ts @@ -22,8 +22,8 @@ import '../../button'; const playStory = async ({ canvasElement }): Promise => { const canvas = within(canvasElement); - await waitForComponentsReady( - () => canvas.getByTestId('navigation').shadowRoot?.querySelector('.sbb-navigation'), + await waitForComponentsReady(() => + canvas.getByTestId('navigation').shadowRoot?.querySelector('.sbb-navigation'), ); const button = canvas.getByTestId('navigation-trigger'); diff --git a/src/components/notification/notification.stories.ts b/src/components/notification/notification.stories.ts index a3f9235efc..4617ea8779 100644 --- a/src/components/notification/notification.stories.ts +++ b/src/components/notification/notification.stories.ts @@ -95,14 +95,13 @@ const DefaultTemplate = (args: Args): TemplateResult => html` ${sbbSpread(args)} disable-animation style="margin-block-end: var(--sbb-spacing-fixed-4x);" - ${ref( - (notification?: Element) => - (notification as SbbNotificationElement)?.addEventListener( - SbbNotificationElement.events.didOpen, - () => - ((notification as SbbNotificationElement).disableAnimation = args['disable-animation']), - { once: true }, - ), + ${ref((notification?: Element) => + (notification as SbbNotificationElement)?.addEventListener( + SbbNotificationElement.events.didOpen, + () => + ((notification as SbbNotificationElement).disableAnimation = args['disable-animation']), + { once: true }, + ), )} > The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy @@ -117,14 +116,13 @@ const SlottedTitleTemplate = (args: Args): TemplateResult => html` ${sbbSpread(args)} disable-animation style="margin-block-end: var(--sbb-spacing-fixed-4x);" - ${ref( - (notification?: Element) => - (notification as SbbNotificationElement)?.addEventListener( - SbbNotificationElement.events.didOpen, - () => - ((notification as SbbNotificationElement).disableAnimation = args['disable-animation']), - { once: true }, - ), + ${ref((notification?: Element) => + (notification as SbbNotificationElement)?.addEventListener( + SbbNotificationElement.events.didOpen, + () => + ((notification as SbbNotificationElement).disableAnimation = args['disable-animation']), + { once: true }, + ), )} > Slotted title diff --git a/src/components/timetable-row/timetable-row.ts b/src/components/timetable-row/timetable-row.ts index 6ae8275524..20e400811e 100644 --- a/src/components/timetable-row/timetable-row.ts +++ b/src/components/timetable-row/timetable-row.ts @@ -436,8 +436,9 @@ export class SbbTimetableRowElement extends LitElement { // add prefix "new" if quay was changed const changedQuayPrefix = departure?.quayChanged ? `${i18nNew[this._language.current]} ` : ''; - return `${changedQuayPrefix}${this._getQuayTypeStrings() - ?.long} ${departure?.quayFormatted}, `; + return `${changedQuayPrefix}${ + this._getQuayTypeStrings()?.long + } ${departure?.quayFormatted}, `; }; const meansOfTransportText = diff --git a/yarn.lock b/yarn.lock index 59f4fe841c..73004e9bf9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10201,10 +10201,10 @@ prelude-ls@^1.2.1: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== -prettier@3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.1.1.tgz#6ba9f23165d690b6cbdaa88cb0807278f7019848" - integrity sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw== +prettier@3.2.2: + version "3.2.2" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.2.2.tgz#96e580f7ca9c96090ad054616c0c4597e2844b65" + integrity sha512-HTByuKZzw7utPiDO523Tt2pLtEyK7OibUD9suEJQrPUCYQqrHr74GGX6VidMrovbf/I50mPqr8j/II6oBAuc5A== prettier@^2.8.0: version "2.8.8"