From 7f2b2fe83a66f1cf6150df87c890580fe6da215c Mon Sep 17 00:00:00 2001 From: Jon Koops Date: Thu, 24 Aug 2023 15:14:07 +0200 Subject: [PATCH] Upgrade Prettier to the latest version (#22664) --- .../components/ExecutionConfigModal.tsx | 5 ++--- .../src/authentication/form/CreateFlow.tsx | 5 ++--- .../add/OpenIdConnectSettings.tsx | 5 ++--- js/package.json | 2 +- js/pnpm-lock.yaml | 14 +++++++------- 5 files changed, 14 insertions(+), 17 deletions(-) diff --git a/js/apps/admin-ui/src/authentication/components/ExecutionConfigModal.tsx b/js/apps/admin-ui/src/authentication/components/ExecutionConfigModal.tsx index d6aef07005..8ed093a0da 100644 --- a/js/apps/admin-ui/src/authentication/components/ExecutionConfigModal.tsx +++ b/js/apps/admin-ui/src/authentication/components/ExecutionConfigModal.tsx @@ -100,9 +100,8 @@ export const ExecutionConfigModal = ({ alias: changedConfig.alias, config: changedConfig.config, }; - const { id } = await adminClient.authenticationManagement.createConfig( - newConfig, - ); + const { id } = + await adminClient.authenticationManagement.createConfig(newConfig); setConfig({ ...newConfig.config, id, alias: newConfig.alias }); } addAlert(t("configSaveSuccess"), AlertVariant.success); diff --git a/js/apps/admin-ui/src/authentication/form/CreateFlow.tsx b/js/apps/admin-ui/src/authentication/form/CreateFlow.tsx index 972a13f975..d5055aea4f 100644 --- a/js/apps/admin-ui/src/authentication/form/CreateFlow.tsx +++ b/js/apps/admin-ui/src/authentication/form/CreateFlow.tsx @@ -31,9 +31,8 @@ export default function CreateFlow() { const flow = { ...formValues, builtIn: false, topLevel: true }; try { - const { id } = await adminClient.authenticationManagement.createFlow( - flow, - ); + const { id } = + await adminClient.authenticationManagement.createFlow(flow); addAlert(t("flowCreatedSuccess"), AlertVariant.success); navigate( toFlow({ diff --git a/js/apps/admin-ui/src/identity-providers/add/OpenIdConnectSettings.tsx b/js/apps/admin-ui/src/identity-providers/add/OpenIdConnectSettings.tsx index c470d8a635..714addfefa 100644 --- a/js/apps/admin-ui/src/identity-providers/add/OpenIdConnectSettings.tsx +++ b/js/apps/admin-ui/src/identity-providers/add/OpenIdConnectSettings.tsx @@ -34,9 +34,8 @@ export const OpenIdConnectSettings = () => { formData.append("file", new Blob([JSON.stringify(obj)])); try { - const result = await adminClient.identityProviders.importFromUrl( - formData, - ); + const result = + await adminClient.identityProviders.importFromUrl(formData); setupForm(result); } catch (error) { setError("discoveryError", { diff --git a/js/package.json b/js/package.json index d8669b5fd5..a3d01a3174 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": "^14.0.1", - "prettier": "^3.0.1", + "prettier": "^3.0.2", "tslib": "^2.6.2", "typescript": "^5.1.6", "wireit": "^0.10.0" diff --git a/js/pnpm-lock.yaml b/js/pnpm-lock.yaml index 4889a5440b..e73a10cbaa 100644 --- a/js/pnpm-lock.yaml +++ b/js/pnpm-lock.yaml @@ -40,7 +40,7 @@ importers: version: 10.1.0(eslint@8.47.0) eslint-plugin-prettier: specifier: ^5.0.0 - version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.47.0)(prettier@3.0.1) + version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.47.0)(prettier@3.0.2) eslint-plugin-react: specifier: ^7.33.2 version: 7.33.2(eslint@8.47.0) @@ -54,8 +54,8 @@ importers: specifier: ^14.0.1 version: 14.0.1 prettier: - specifier: ^3.0.1 - version: 3.0.1 + specifier: ^3.0.2 + version: 3.0.2 tslib: specifier: ^2.6.2 version: 2.6.2 @@ -3591,7 +3591,7 @@ packages: rambda: 7.5.0 dev: true - /eslint-plugin-prettier@5.0.0(eslint-config-prettier@9.0.0)(eslint@8.47.0)(prettier@3.0.1): + /eslint-plugin-prettier@5.0.0(eslint-config-prettier@9.0.0)(eslint@8.47.0)(prettier@3.0.2): resolution: {integrity: sha512-AgaZCVuYDXHUGxj/ZGu1u8H8CYgDY3iG6w5kUFw4AzMVXzB7VvbKgYR4nATIN+OvUrghMbiDLeimVjVY5ilq3w==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -3607,7 +3607,7 @@ packages: dependencies: eslint: 8.47.0 eslint-config-prettier: 9.0.0(eslint@8.47.0) - prettier: 3.0.1 + prettier: 3.0.2 prettier-linter-helpers: 1.0.0 synckit: 0.8.5 dev: true @@ -5535,8 +5535,8 @@ packages: fast-diff: 1.3.0 dev: true - /prettier@3.0.1: - resolution: {integrity: sha512-fcOWSnnpCrovBsmFZIGIy9UqK2FaI7Hqax+DIO0A9UxeVoY4iweyaFjS5TavZN97Hfehph0nhsZnjlVKzEQSrQ==} + /prettier@3.0.2: + resolution: {integrity: sha512-o2YR9qtniXvwEZlOKbveKfDQVyqxbEIWn48Z8m3ZJjBjcCmUy3xZGIv+7AkaeuaTr6yPXJjwv07ZWlsWbEy1rQ==} engines: {node: '>=14'} hasBin: true dev: true