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] <support@github.com>

* Fix linting issues

Signed-off-by: Jon Koops <jonkoops@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jon Koops <jonkoops@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jon Koops <jonkoops@gmail.com>
This commit is contained in:
dependabot[bot] 2023-11-14 17:59:24 +00:00 committed by GitHub
parent f20d34b7dd
commit f550ac9035
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 30 additions and 30 deletions

View file

@ -121,8 +121,8 @@ export default function ClientScopesSection() {
searchType === "name" searchType === "name"
? nameFilter(search) ? nameFilter(search)
: searchType === "type" : searchType === "type"
? typeFilter(searchTypeType) ? typeFilter(searchTypeType)
: protocolFilter(searchProtocol); : protocolFilter(searchProtocol);
const transformed = clientScopes const transformed = clientScopes
.map((scope) => { .map((scope) => {
@ -133,10 +133,10 @@ export default function ClientScopesSection() {
) )
? ClientScope.default ? ClientScope.default
: optionalScopes.find( : optionalScopes.find(
(optionalScope) => optionalScope.name === scope.name, (optionalScope) => optionalScope.name === scope.name,
) )
? ClientScope.optional ? ClientScope.optional
: AllClientScopes.none, : AllClientScopes.none,
}; };
return row; return row;
}) })

View file

@ -155,8 +155,8 @@ export const GroupPickerDialog = ({
type === "selectMany" type === "selectMany"
? selectedRows ? selectedRows
: navigation.length : navigation.length
? [currentGroup()] ? [currentGroup()]
: undefined, : undefined,
); );
}} }}
isDisabled={type === "selectMany" && selectedRows.length === 0} isDisabled={type === "selectMany" && selectedRows.length === 0}

View file

@ -175,8 +175,8 @@ export const ViewHeader = ({
{isValidElement(subKey) {isValidElement(subKey)
? subKey ? subKey
: subKey : subKey
? t(subKey as string) ? t(subKey as string)
: ""} : ""}
{helpUrl && ( {helpUrl && (
<FormattedLink <FormattedLink
title={t("learnMore")} title={t("learnMore")}

View file

@ -117,8 +117,8 @@ export const DiscoveryEndpointField = ({
errors.discoveryError || errors.discoveryEndpoint errors.discoveryError || errors.discoveryEndpoint
? "error" ? "error"
: !discoveryResult : !discoveryResult
? "default" ? "default"
: "success" : "success"
} }
helperTextInvalid={ helperTextInvalid={
errors.discoveryEndpoint errors.discoveryEndpoint
@ -142,8 +142,8 @@ export const DiscoveryEndpointField = ({
errors.discoveryError || errors.discoveryEndpoint errors.discoveryError || errors.discoveryEndpoint
? "error" ? "error"
: !discoveryResult : !discoveryResult
? "default" ? "default"
: "success" : "success"
} }
customIconUrl={ customIconUrl={
discovering discovering

View file

@ -477,10 +477,10 @@ export const LocalizationTab = ({ save, realm }: LocalizationTabProps) => {
field.value field.value
? localeToDisplayName(field.value) ? localeToDisplayName(field.value)
: realm.defaultLocale !== "" : realm.defaultLocale !== ""
? localeToDisplayName( ? localeToDisplayName(
realm.defaultLocale || DEFAULT_LOCALE, realm.defaultLocale || DEFAULT_LOCALE,
) )
: t("placeholderText") : t("placeholderText")
} }
variant={SelectVariant.single} variant={SelectVariant.single}
aria-label={t("defaultLocale")} aria-label={t("defaultLocale")}
@ -567,8 +567,8 @@ export const LocalizationTab = ({ save, realm }: LocalizationTabProps) => {
selectMenuValueSelected selectMenuValueSelected
? localeToDisplayName(selectMenuLocale) ? localeToDisplayName(selectMenuLocale)
: realm.defaultLocale !== "" : realm.defaultLocale !== ""
? localeToDisplayName(DEFAULT_LOCALE) ? localeToDisplayName(DEFAULT_LOCALE)
: t("placeholderText") : t("placeholderText")
} }
> >
{options} {options}

View file

@ -139,8 +139,8 @@ export const UserIdentityProviderLinks = ({
{groupName === "User-defined" {groupName === "User-defined"
? "Custom" ? "Custom"
: groupName! === "Social" : groupName! === "Social"
? t("idpType.social") ? t("idpType.social")
: groupName!} : groupName!}
</Label> </Label>
); );
}; };

View file

@ -19,7 +19,7 @@
"eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.3", "husky": "^8.0.3",
"lint-staged": "^15.1.0", "lint-staged": "^15.1.0",
"prettier": "^3.0.3", "prettier": "^3.1.0",
"tslib": "^2.6.2", "tslib": "^2.6.2",
"typescript": "^5.2.2", "typescript": "^5.2.2",
"wireit": "^0.14.1" "wireit": "^0.14.1"

View file

@ -40,7 +40,7 @@ importers:
version: 10.2.0(eslint@8.53.0) version: 10.2.0(eslint@8.53.0)
eslint-plugin-prettier: eslint-plugin-prettier:
specifier: ^5.0.1 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: eslint-plugin-react:
specifier: ^7.33.2 specifier: ^7.33.2
version: 7.33.2(eslint@8.53.0) version: 7.33.2(eslint@8.53.0)
@ -54,8 +54,8 @@ importers:
specifier: ^15.1.0 specifier: ^15.1.0
version: 15.1.0 version: 15.1.0
prettier: prettier:
specifier: ^3.0.3 specifier: ^3.1.0
version: 3.0.3 version: 3.1.0
tslib: tslib:
specifier: ^2.6.2 specifier: ^2.6.2
version: 2.6.2 version: 2.6.2
@ -3672,7 +3672,7 @@ packages:
rambda: 7.5.0 rambda: 7.5.0
dev: true 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==} resolution: {integrity: sha512-m3u5RnR56asrwV/lDC4GHorlW75DsFfmUcjfCYylTUs85dBRnB7VM6xG8eCMJdeDRnppzmxZVf1GEPJvl1JmNg==}
engines: {node: ^14.18.0 || >=16.0.0} engines: {node: ^14.18.0 || >=16.0.0}
peerDependencies: peerDependencies:
@ -3688,7 +3688,7 @@ packages:
dependencies: dependencies:
eslint: 8.53.0 eslint: 8.53.0
eslint-config-prettier: 9.0.0(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 prettier-linter-helpers: 1.0.0
synckit: 0.8.5 synckit: 0.8.5
dev: true dev: true
@ -5753,8 +5753,8 @@ packages:
fast-diff: 1.3.0 fast-diff: 1.3.0
dev: true dev: true
/prettier@3.0.3: /prettier@3.1.0:
resolution: {integrity: sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==} resolution: {integrity: sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==}
engines: {node: '>=14'} engines: {node: '>=14'}
hasBin: true hasBin: true
dev: true dev: true