Skip to content

Commit

Permalink
chore: bump prettier
Browse files Browse the repository at this point in the history
Jonas-C committed Dec 11, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent b504efc commit 7bf31cb
Showing 8 changed files with 23 additions and 65 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -83,7 +83,7 @@
"lerna": "^8.1.9",
"nx": "20.1.4",
"postcss": "^8.4.22",
"prettier": "^3.1.0",
"prettier": "^3.4.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-i18next": "^14.1.1",
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ export const pitchEmbedPlugin: PluginType = (element, _, opts) => {
path={opts.path}
metaImage={{
alt: alt ? alt : "",
url: data.status === "success" ? data.data.metaImage?.image.imageUrl ?? errorSvgSrc : errorSvgSrc,
url: data.status === "success" ? (data.data.metaImage?.image.imageUrl ?? errorSvgSrc) : errorSvgSrc,
}}
/>
);
2 changes: 1 addition & 1 deletion packages/ndla-image-search/src/ImageSearchResult.tsx
Original file line number Diff line number Diff line change
@@ -72,7 +72,7 @@ export default function ImageSearchResult({
/>
<StyledText textStyle="label.medium" asChild consumeCss>
<span>
{image.title.title.trim() ? image.title.title : translations.missingTitleFallback ?? `ID: ${image.id}`}
{image.title.title.trim() ? image.title.title : (translations.missingTitleFallback ?? `ID: ${image.id}`)}
</span>
</StyledText>
</StyledButton>
2 changes: 1 addition & 1 deletion packages/ndla-image-search/src/PreviewImage.tsx
Original file line number Diff line number Diff line change
@@ -135,7 +135,7 @@ const PreviewImage = ({ id, image, onSelectImage, showCheckbox, translations, lo
<StyledImageMetadata>
<StyledTopRow>
<Text textStyle="title.medium">
{image.title.title.trim() ? image.title.title : translations.missingTitleFallback ?? `ID: ${image.id}`}
{image.title.title.trim() ? image.title.title : (translations.missingTitleFallback ?? `ID: ${image.id}`)}
</Text>
<IconButton
variant="tertiary"
2 changes: 1 addition & 1 deletion packages/ndla-ui/src/Embed/ExternalEmbed.tsx
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ const ExternalEmbed = ({ embed }: Props) => {
if (embedData.type === "fullscreen") {
const image = {
src: data.iframeImage?.image.imageUrl ?? "",
alt: embedData.alt !== undefined ? embedData.alt : data.iframeImage?.alttext?.alttext ?? "",
alt: embedData.alt !== undefined ? embedData.alt : (data.iframeImage?.alttext?.alttext ?? ""),
};
return (
<Figure data-embed-type="external">
2 changes: 1 addition & 1 deletion packages/ndla-ui/src/Embed/ImageEmbed.tsx
Original file line number Diff line number Diff line change
@@ -223,7 +223,7 @@ const ImageEmbed = ({ embed, previewAlt, lang, renderContext = "article", childr

const licenseProps = licenseAttributes(data.copyright.license.license, lang, embedData.url);

const figureSize = figureProps?.float ? figureProps?.size ?? "medium" : "full";
const figureSize = figureProps?.float ? (figureProps?.size ?? "medium") : "full";

return (
<StyledFigure
2 changes: 1 addition & 1 deletion packages/primitives/src/ListItem/ListItem.tsx
Original file line number Diff line number Diff line change
@@ -203,7 +203,7 @@ const InternalListItemRoot = withProvider<HTMLDivElement, HTMLArkProps<"div"> &
export const ListItemRoot = forwardRef<HTMLDivElement, ListItemProps>((props, ref) => (
<InternalListItemRoot
{...props}
colorTheme={props.nonInteractive ? undefined : props.colorTheme ?? "brand1"}
colorTheme={props.nonInteractive ? undefined : (props.colorTheme ?? "brand1")}
ref={ref}
/>
));
74 changes: 16 additions & 58 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -5894,16 +5894,7 @@ __metadata:
languageName: node
linkType: hard

"agent-base@npm:^7.0.2, agent-base@npm:^7.1.0":
version: 7.1.0
resolution: "agent-base@npm:7.1.0"
dependencies:
debug: "npm:^4.3.4"
checksum: 10c0/fc974ab57ffdd8421a2bc339644d312a9cca320c20c3393c9d8b1fd91731b9bbabdb985df5fc860f5b79d81c3e350daa3fcb31c5c07c0bb385aafc817df004ce
languageName: node
linkType: hard

"agent-base@npm:^7.1.2":
"agent-base@npm:^7.0.2, agent-base@npm:^7.1.0, agent-base@npm:^7.1.2":
version: 7.1.3
resolution: "agent-base@npm:7.1.3"
checksum: 10c0/6192b580c5b1d8fb399b9c62bf8343d76654c2dd62afcb9a52b2cf44a8b6ace1e3b704d3fe3547d91555c857d3df02603341ff2cb961b9cfe2b12f9f3c38ee11
@@ -9300,7 +9291,7 @@ __metadata:
lerna: "npm:^8.1.9"
nx: "npm:20.1.4"
postcss: "npm:^8.4.22"
prettier: "npm:^3.1.0"
prettier: "npm:^3.4.2"
react: "npm:^19.0.0"
react-dom: "npm:^19.0.0"
react-i18next: "npm:^14.1.1"
@@ -9971,17 +9962,7 @@ __metadata:
languageName: node
linkType: hard

"http-proxy-agent@npm:^7.0.0":
version: 7.0.0
resolution: "http-proxy-agent@npm:7.0.0"
dependencies:
agent-base: "npm:^7.1.0"
debug: "npm:^4.3.4"
checksum: 10c0/a11574ff39436cee3c7bc67f259444097b09474605846ddd8edf0bf4ad8644be8533db1aa463426e376865047d05dc22755e638632819317c0c2f1b2196657c8
languageName: node
linkType: hard

"http-proxy-agent@npm:^7.0.2":
"http-proxy-agent@npm:^7.0.0, http-proxy-agent@npm:^7.0.2":
version: 7.0.2
resolution: "http-proxy-agent@npm:7.0.2"
dependencies:
@@ -10001,17 +9982,7 @@ __metadata:
languageName: node
linkType: hard

"https-proxy-agent@npm:^7.0.1":
version: 7.0.2
resolution: "https-proxy-agent@npm:7.0.2"
dependencies:
agent-base: "npm:^7.0.2"
debug: "npm:4"
checksum: 10c0/7735eb90073db087e7e79312e3d97c8c04baf7ea7ca7b013382b6a45abbaa61b281041a98f4e13c8c80d88f843785bcc84ba189165b4b4087b1e3496ba656d77
languageName: node
linkType: hard

"https-proxy-agent@npm:^7.0.5":
"https-proxy-agent@npm:^7.0.1, https-proxy-agent@npm:^7.0.5":
version: 7.0.6
resolution: "https-proxy-agent@npm:7.0.6"
dependencies:
@@ -13234,7 +13205,7 @@ __metadata:
languageName: node
linkType: hard

"prettier@npm:3.2.5, prettier@npm:^3.1.0":
"prettier@npm:3.2.5":
version: 3.2.5
resolution: "prettier@npm:3.2.5"
bin:
@@ -13252,6 +13223,15 @@ __metadata:
languageName: node
linkType: hard

"prettier@npm:^3.4.2":
version: 3.4.2
resolution: "prettier@npm:3.4.2"
bin:
prettier: bin/prettier.cjs
checksum: 10c0/99e076a26ed0aba4ebc043880d0f08bbb8c59a4c6641cdee6cdadf2205bdd87aa1d7823f50c3aea41e015e99878d37c58d7b5f0e663bba0ef047f94e36b96446
languageName: node
linkType: hard

"pretty-format@npm:^27.0.2":
version: 27.5.1
resolution: "pretty-format@npm:27.5.1"
@@ -13430,14 +13410,7 @@ __metadata:
languageName: node
linkType: hard

"punycode@npm:^2.1.0":
version: 2.3.0
resolution: "punycode@npm:2.3.0"
checksum: 10c0/8e6f7abdd3a6635820049e3731c623bbef3fedbf63bbc696b0d7237fdba4cefa069bc1fa62f2938b0fbae057550df7b5318f4a6bcece27f1907fc75c54160bee
languageName: node
linkType: hard

"punycode@npm:^2.3.1":
"punycode@npm:^2.1.0, punycode@npm:^2.3.1":
version: 2.3.1
resolution: "punycode@npm:2.3.1"
checksum: 10c0/14f76a8206bc3464f794fb2e3d3cc665ae416c01893ad7a02b23766eb07159144ee612ad67af5e84fa4479ccfe67678c4feb126b0485651b302babf66f04f9e9
@@ -16285,7 +16258,7 @@ __metadata:
languageName: node
linkType: hard

"ws@npm:^8.18.0":
"ws@npm:^8.18.0, ws@npm:^8.2.3":
version: 8.18.0
resolution: "ws@npm:8.18.0"
peerDependencies:
@@ -16300,21 +16273,6 @@ __metadata:
languageName: node
linkType: hard

"ws@npm:^8.2.3":
version: 8.17.1
resolution: "ws@npm:8.17.1"
peerDependencies:
bufferutil: ^4.0.1
utf-8-validate: ">=5.0.2"
peerDependenciesMeta:
bufferutil:
optional: true
utf-8-validate:
optional: true
checksum: 10c0/f4a49064afae4500be772abdc2211c8518f39e1c959640457dcee15d4488628620625c783902a52af2dd02f68558da2868fd06e6fd0e67ebcd09e6881b1b5bfe
languageName: node
linkType: hard

"xdg-app-paths@npm:5.1.0":
version: 5.1.0
resolution: "xdg-app-paths@npm:5.1.0"

0 comments on commit 7bf31cb

Please sign in to comment.