Skip to content

Commit

Permalink
chore(deps): update dependency prettier to v3.2.2 (#2336)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency prettier to v3.2.2

* fix: prettier

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jeremias Peier <[email protected]>
  • Loading branch information
renovate[bot] and jeripeierSBB authored Jan 15, 2024
1 parent 09c35e5 commit 654bda5
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 27 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import '../navigation';
const playStory = async (trigger: string, canvasElement: HTMLElement): Promise<void> => {
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');
Expand Down
4 changes: 2 additions & 2 deletions src/components/navigation/navigation/navigation.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import '../../button';
const playStory = async ({ canvasElement }): Promise<void> => {
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');
Expand Down
30 changes: 14 additions & 16 deletions src/components/notification/notification.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 },
),
)}
>
<span slot="title">Slotted title</span>
Expand Down
5 changes: 3 additions & 2 deletions src/components/timetable-row/timetable-row.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 654bda5

Please sign in to comment.