From f550ac903575f5140fff38752e0a394a2f2c7a8e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 14 Nov 2023 17:59:24 +0000 Subject: [PATCH] Bump prettier from 3.0.3 to 3.1.0 in /js (#24724) * Bump prettier from 3.0.3 to 3.1.0 in /js Bumps [prettier](https://github.com/prettier/prettier) from 3.0.3 to 3.1.0. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/3.0.3...3.1.0) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Fix linting issues Signed-off-by: Jon Koops --------- Signed-off-by: dependabot[bot] Signed-off-by: Jon Koops Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jon Koops --- .../src/client-scopes/ClientScopesSection.tsx | 12 ++++++------ .../src/components/group/GroupPickerDialog.tsx | 4 ++-- .../src/components/view-header/ViewHeader.tsx | 4 ++-- .../component/DiscoveryEndpointField.tsx | 8 ++++---- .../src/realm-settings/LocalizationTab.tsx | 12 ++++++------ .../src/user/UserIdentityProviderLinks.tsx | 4 ++-- js/package.json | 2 +- js/pnpm-lock.yaml | 14 +++++++------- 8 files changed, 30 insertions(+), 30 deletions(-) diff --git a/js/apps/admin-ui/src/client-scopes/ClientScopesSection.tsx b/js/apps/admin-ui/src/client-scopes/ClientScopesSection.tsx index 31069d595b..c26287cbde 100644 --- a/js/apps/admin-ui/src/client-scopes/ClientScopesSection.tsx +++ b/js/apps/admin-ui/src/client-scopes/ClientScopesSection.tsx @@ -121,8 +121,8 @@ export default function ClientScopesSection() { searchType === "name" ? nameFilter(search) : searchType === "type" - ? typeFilter(searchTypeType) - : protocolFilter(searchProtocol); + ? typeFilter(searchTypeType) + : protocolFilter(searchProtocol); const transformed = clientScopes .map((scope) => { @@ -133,10 +133,10 @@ export default function ClientScopesSection() { ) ? ClientScope.default : optionalScopes.find( - (optionalScope) => optionalScope.name === scope.name, - ) - ? ClientScope.optional - : AllClientScopes.none, + (optionalScope) => optionalScope.name === scope.name, + ) + ? ClientScope.optional + : AllClientScopes.none, }; return row; }) diff --git a/js/apps/admin-ui/src/components/group/GroupPickerDialog.tsx b/js/apps/admin-ui/src/components/group/GroupPickerDialog.tsx index b46916915a..a31d822ab6 100644 --- a/js/apps/admin-ui/src/components/group/GroupPickerDialog.tsx +++ b/js/apps/admin-ui/src/components/group/GroupPickerDialog.tsx @@ -155,8 +155,8 @@ export const GroupPickerDialog = ({ type === "selectMany" ? selectedRows : navigation.length - ? [currentGroup()] - : undefined, + ? [currentGroup()] + : undefined, ); }} isDisabled={type === "selectMany" && selectedRows.length === 0} diff --git a/js/apps/admin-ui/src/components/view-header/ViewHeader.tsx b/js/apps/admin-ui/src/components/view-header/ViewHeader.tsx index 8199e0fe52..de3c3739a8 100644 --- a/js/apps/admin-ui/src/components/view-header/ViewHeader.tsx +++ b/js/apps/admin-ui/src/components/view-header/ViewHeader.tsx @@ -175,8 +175,8 @@ export const ViewHeader = ({ {isValidElement(subKey) ? subKey : subKey - ? t(subKey as string) - : ""} + ? t(subKey as string) + : ""} {helpUrl && ( { field.value ? localeToDisplayName(field.value) : realm.defaultLocale !== "" - ? localeToDisplayName( - realm.defaultLocale || DEFAULT_LOCALE, - ) - : t("placeholderText") + ? localeToDisplayName( + realm.defaultLocale || DEFAULT_LOCALE, + ) + : t("placeholderText") } variant={SelectVariant.single} aria-label={t("defaultLocale")} @@ -567,8 +567,8 @@ export const LocalizationTab = ({ save, realm }: LocalizationTabProps) => { selectMenuValueSelected ? localeToDisplayName(selectMenuLocale) : realm.defaultLocale !== "" - ? localeToDisplayName(DEFAULT_LOCALE) - : t("placeholderText") + ? localeToDisplayName(DEFAULT_LOCALE) + : t("placeholderText") } > {options} diff --git a/js/apps/admin-ui/src/user/UserIdentityProviderLinks.tsx b/js/apps/admin-ui/src/user/UserIdentityProviderLinks.tsx index 0b4ad6f741..d2fef1516f 100644 --- a/js/apps/admin-ui/src/user/UserIdentityProviderLinks.tsx +++ b/js/apps/admin-ui/src/user/UserIdentityProviderLinks.tsx @@ -139,8 +139,8 @@ export const UserIdentityProviderLinks = ({ {groupName === "User-defined" ? "Custom" : groupName! === "Social" - ? t("idpType.social") - : groupName!} + ? t("idpType.social") + : groupName!} ); }; diff --git a/js/package.json b/js/package.json index 9272235e1d..6e940bdee4 100644 --- a/js/package.json +++ b/js/package.json @@ -19,7 +19,7 @@ "eslint-plugin-react-hooks": "^4.6.0", "husky": "^8.0.3", "lint-staged": "^15.1.0", - "prettier": "^3.0.3", + "prettier": "^3.1.0", "tslib": "^2.6.2", "typescript": "^5.2.2", "wireit": "^0.14.1" diff --git a/js/pnpm-lock.yaml b/js/pnpm-lock.yaml index ca4c866c51..1cc9f6a12c 100644 --- a/js/pnpm-lock.yaml +++ b/js/pnpm-lock.yaml @@ -40,7 +40,7 @@ importers: version: 10.2.0(eslint@8.53.0) eslint-plugin-prettier: specifier: ^5.0.1 - version: 5.0.1(eslint-config-prettier@9.0.0)(eslint@8.53.0)(prettier@3.0.3) + version: 5.0.1(eslint-config-prettier@9.0.0)(eslint@8.53.0)(prettier@3.1.0) eslint-plugin-react: specifier: ^7.33.2 version: 7.33.2(eslint@8.53.0) @@ -54,8 +54,8 @@ importers: specifier: ^15.1.0 version: 15.1.0 prettier: - specifier: ^3.0.3 - version: 3.0.3 + specifier: ^3.1.0 + version: 3.1.0 tslib: specifier: ^2.6.2 version: 2.6.2 @@ -3672,7 +3672,7 @@ packages: rambda: 7.5.0 dev: true - /eslint-plugin-prettier@5.0.1(eslint-config-prettier@9.0.0)(eslint@8.53.0)(prettier@3.0.3): + /eslint-plugin-prettier@5.0.1(eslint-config-prettier@9.0.0)(eslint@8.53.0)(prettier@3.1.0): resolution: {integrity: sha512-m3u5RnR56asrwV/lDC4GHorlW75DsFfmUcjfCYylTUs85dBRnB7VM6xG8eCMJdeDRnppzmxZVf1GEPJvl1JmNg==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -3688,7 +3688,7 @@ packages: dependencies: eslint: 8.53.0 eslint-config-prettier: 9.0.0(eslint@8.53.0) - prettier: 3.0.3 + prettier: 3.1.0 prettier-linter-helpers: 1.0.0 synckit: 0.8.5 dev: true @@ -5753,8 +5753,8 @@ packages: fast-diff: 1.3.0 dev: true - /prettier@3.0.3: - resolution: {integrity: sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==} + /prettier@3.1.0: + resolution: {integrity: sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==} engines: {node: '>=14'} hasBin: true dev: true