From de4b3c1c3c4e78697b55207d9a7c3329d3ab845e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20J=C3=A4derberg?= Date: Mon, 8 Dec 2025 07:56:21 +0000 Subject: [PATCH] Merged in chore/eslint-curly-braces (pull request #3304) Chore/eslint curly braces * Add eslint rule for curly braces * run eslint --fix for all files Approved-by: Linus Flood --- apps/partner-sas/app/[lang]/page.tsx | 6 +++--- apps/partner-sas/app/global-error.tsx | 5 ++--- .../components/LanguageSwitcher/index.tsx | 16 +++++++-------- .../components/Menu/MobileMenu/index.tsx | 2 +- .../components/Menu/NavigationMenu/index.tsx | 2 +- .../components/Menu/UserMenu/index.tsx | 12 +++++------ apps/partner-sas/eslint.config.mjs | 8 ++++++++ apps/partner-sas/package.json | 4 ++-- apps/redis-api/package.json | 4 ++-- .../components/AlreadyLinkedError.tsx | 8 ++++---- .../sas-x-scandic/link/LinkAccountForm.tsx | 2 +- apps/scandic-web/app/global-error.tsx | 5 ++--- .../JobylonFeed/JobList/Filter/index.tsx | 8 ++++---- .../DynamicContent/OverviewTable/Client.tsx | 4 ++-- .../OverviewTable/LargeTable/index.tsx | 4 ++-- .../OverviewTable/RewardList/Card/index.tsx | 2 +- .../OverviewTable/YourLevelScript/index.tsx | 2 +- .../DynamicContent/Points/Overview/index.tsx | 4 ++-- .../DestinationSearch/Form.tsx | 2 +- .../Steps/ConfirmationStep/index.tsx | 2 +- .../Steps/DeliveryDetailsStep/index.tsx | 2 +- .../MyStay/Rooms/MultiRoom/Room.tsx | 2 +- .../MyStay/Rooms/SingleRoom/index.tsx | 2 +- .../MyStay/myStaySkeleton.tsx | 10 +++++----- .../LevelProgressModal/index.tsx | 2 +- .../components/MyPages/Pagination/index.tsx | 2 +- .../BookedRoomSidePeekContent/index.tsx | 2 +- .../components/Sidebar/JoinLoyalty/index.tsx | 10 +++++----- apps/scandic-web/eslint.config.mjs | 8 ++++++++ apps/scandic-web/package.json | 4 ++-- packages/booking-flow/eslint.config.mjs | 8 ++++++++ packages/booking-flow/package.json | 4 ++-- packages/common/package.json | 2 +- packages/design-system/eslint.config.mjs | 10 ++++++++++ .../Card/Compositions/ContentCard.stories.tsx | 4 ++-- .../Form/PaymentOption/PaymentOption.tsx | 2 +- .../HotelCard/HotelCardSkeleton.tsx | 20 +++++++++---------- .../HotelCard/HotelChequeCard/index.tsx | 5 +++-- .../HotelInfoCard/HotelInfoCard.stories.tsx | 4 ++-- .../lib/components/ImageGallery/index.tsx | 2 +- .../lib/components/InfoBox/InfoBox.tsx | 2 +- .../LinkList/LinkListItem/index.tsx | 2 +- .../Map/Markers/HotelMarkerByType.stories.tsx | 2 +- .../Payment/PaymentMethodIcon.stories.tsx | 2 +- .../components/RateCard/Campaign/index.tsx | 2 +- .../lib/components/RateCard/Code/index.tsx | 2 +- .../lib/components/RateCard/Modal/index.tsx | 4 ++-- .../lib/components/RateCard/Points/index.tsx | 2 +- .../lib/components/RateCard/Regular/index.tsx | 2 +- .../lib/components/Toasts/Toast.tsx | 2 +- packages/design-system/package.json | 5 +++-- packages/tracking/package.json | 2 +- packages/trpc/package.json | 4 ++-- yarn.lock | 3 ++- 54 files changed, 139 insertions(+), 104 deletions(-) diff --git a/apps/partner-sas/app/[lang]/page.tsx b/apps/partner-sas/app/[lang]/page.tsx index 1046fea81..83d128359 100644 --- a/apps/partner-sas/app/[lang]/page.tsx +++ b/apps/partner-sas/app/[lang]/page.tsx @@ -38,7 +38,7 @@ export default async function Home(props: PageArgs) {
- +

{intl.formatMessage({ id: "partnerSas.startPage.heading", @@ -64,7 +64,7 @@ export default async function Home(props: PageArgs) { defaultMessage: "Collect new SAS EuroBonus points with your bookings.", })} - theme={"SAS-Blue"} + theme="SAS-Blue" icon={IconName.Diamond} /> ) { defaultMessage: "Then use your points to pay for your next Scandic stay!", })} - theme={"SAS-Blue"} + theme="SAS-Blue" icon={IconName.CreditCard} />

diff --git a/apps/partner-sas/app/global-error.tsx b/apps/partner-sas/app/global-error.tsx index d457bc4c5..f58460af9 100644 --- a/apps/partner-sas/app/global-error.tsx +++ b/apps/partner-sas/app/global-error.tsx @@ -64,9 +64,8 @@ export default function GlobalError({

- { - "While we're working hard to fix it, you can always give us a call:" - } + While we're working hard to fix it, you can always give us a + call:

diff --git a/apps/partner-sas/components/LanguageSwitcher/index.tsx b/apps/partner-sas/components/LanguageSwitcher/index.tsx index 2e6193670..c8378893a 100644 --- a/apps/partner-sas/components/LanguageSwitcher/index.tsx +++ b/apps/partner-sas/components/LanguageSwitcher/index.tsx @@ -61,12 +61,12 @@ export function LanguageSwitcher({ return (
-
- +

{intl.formatMessage({ id: "common.selectYourLanguage", diff --git a/apps/partner-sas/components/Menu/MobileMenu/index.tsx b/apps/partner-sas/components/Menu/MobileMenu/index.tsx index 721539e9c..d3d8122b4 100644 --- a/apps/partner-sas/components/Menu/MobileMenu/index.tsx +++ b/apps/partner-sas/components/Menu/MobileMenu/index.tsx @@ -35,7 +35,7 @@ export function MobileMenu({ children }: React.PropsWithChildren) { />