Skip to content

Commit

Permalink
chore(deps-dev): bump prettier from 3.0.3 to 3.1.1 (#10165)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Dec 14, 2023
1 parent 1b9286d commit 5c3841a
Show file tree
Hide file tree
Showing 14 changed files with 48 additions and 48 deletions.
12 changes: 6 additions & 6 deletions client/src/document/baseline-indicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ export function BaselineIndicator({ status }: { status: SupportStatus }) {
const level = status.baseline
? status.baseline
: status.baseline === false
? "not"
: undefined;
? "not"
: undefined;

const feedbackLink = `${SURVEY_URL}?page=${encodeURIComponent(
pathname
Expand All @@ -67,10 +67,10 @@ export function BaselineIndicator({ status }: { status: SupportStatus }) {
? `Supported in ${browser}`
: `Not widely supported in ${browser}`
: current === previous
? ` and ${browser}`
: current
? `, and supported in ${browser}`
: `, and not widely supported in ${browser}`;
? ` and ${browser}`
: current
? `, and supported in ${browser}`
: `, and not widely supported in ${browser}`;
})
.join("");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,11 +388,11 @@ function getNotes(
label: "Full support",
}
: isNotSupportedAtAll(item)
? {
iconName: "footnote",
label: "No support",
}
: null,
? {
iconName: "footnote",
label: "No support",
}
: null,
]
.flat()
.filter(isTruthy);
Expand Down
6 changes: 3 additions & 3 deletions client/src/document/molecules/tooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ function Tooltip({
? x
: wH
: // the center of the parent is on the right half of the window
x > iW - wH // if the inner width of the window is less than half the tooltip
? 2 * wH - (iW - x)
: wH);
x > iW - wH // if the inner width of the window is less than half the tooltip
? 2 * wH - (iW - x)
: wH);
const tooltipOffset = `${offset.toFixed(2)}px`;
setStyle(Object.fromEntries([["--tooltip-offset", tooltipOffset]]));
};
Expand Down
4 changes: 2 additions & 2 deletions client/src/document/toolbar/flaws.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ export function ToggleDocumentFlaws({
el.href = !allFlaws
? "/favicon-48x48-flawless.png"
: allFlaws === allFixableFlaws
? "/favicon-48x48-flaws-fixable.png"
: "/favicon-48x48-flaws.png";
? "/favicon-48x48-flaws-fixable.png"
: "/favicon-48x48-flaws.png";
}
}, [doc.flaws]);

Expand Down
12 changes: 6 additions & 6 deletions client/src/plus/ai-help/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ function AIHelpAssistantResponse({
{message.status === MessageStatus.Errored
? MESSAGE_FAILED
: message.status === MessageStatus.InProgress
? MESSAGE_ANSWERING
: MESSAGE_ANSWERED}
? MESSAGE_ANSWERING
: MESSAGE_ANSWERED}
</div>
)}
{message.content && (
Expand Down Expand Up @@ -756,10 +756,10 @@ export function AIHelpInner() {
isLoading
? MESSAGE_SEARCHING
: isResponding
? MESSAGE_ANSWERING
: hasConversation
? "Ask your follow up question"
: "Ask your question"
? MESSAGE_ANSWERING
: hasConversation
? "Ask your follow up question"
: "Ask your question"
)}
/>
<div className="ai-help-input-actions">
Expand Down
10 changes: 5 additions & 5 deletions client/src/plus/ai-help/use-ai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@ class AiHelpHistory {
status: message.assistant
? MessageStatus.Complete
: Date.now() - Date.parse(message.metadata.created_at) >
ERROR_TIMEOUT
? MessageStatus.Errored
: MessageStatus.InProgress,
ERROR_TIMEOUT
? MessageStatus.Errored
: MessageStatus.InProgress,
sources: message.metadata.sources,
chatId: message.metadata.chat_id,
messageId: message.metadata.message_id,
Expand Down Expand Up @@ -606,8 +606,8 @@ export function useAiChat({
let newPath = messageId
? addSibling(state, messageId)
: parentId
? [...findPath(state, parentId), 0]
: [0];
? [...findPath(state, parentId), 0]
: [0];
setPath(newPath);
gleanClick(`${AI_HELP}: submit question ${newPath.length}`);
dispatchState({
Expand Down
4 changes: 2 additions & 2 deletions client/src/plus/collections/collection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ export function CollectionComponent() {
{itemLoading
? "Loading..."
: itemError
? "Error (try again)"
: "Show more"}
? "Error (try again)"
: "Show more"}
</Button>
</div>
)}
Expand Down
4 changes: 2 additions & 2 deletions client/src/telemetry/glean-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ export function useGleanPage(pageNotFound: boolean, doc?: Doc) {
isBaseline: doc?.baseline?.baseline
? `baseline_${doc.baseline.baseline}`
: doc?.baseline?.baseline === false
? "not_baseline"
: undefined,
? "not_baseline"
: undefined,
utm: getUTMParameters(),
});
if (typeof userData !== "undefined" && path.current !== loc.pathname) {
Expand Down
4 changes: 2 additions & 2 deletions client/src/ui/organisms/placement/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ export function TopPlacement() {
isServer || placementData?.status === Status.loading
? "loading"
: placementData?.top
? "visible"
: "fallback";
? "visible"
: "fallback";

return (
<div className={`top-banner ${status}`} style={css}>
Expand Down
12 changes: 6 additions & 6 deletions client/src/user-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,12 @@ export function UserDataProvider(props: { children: React.ReactNode }) {
const userData = isLoading
? getSessionStorageData()
: error || !data
? {
...getSessionStorageData(),
...data,
maintenance: `The API is down for maintenance. You can continue to browse the MDN Web Docs, but MDN Plus and Search might not be available. Thank you for your patience!`,
}
: data;
? {
...getSessionStorageData(),
...data,
maintenance: `The API is down for maintenance. You can continue to browse the MDN Web Docs, but MDN Plus and Search might not be available. Thank you for your patience!`,
}
: data;

return (
<UserDataContext.Provider value={userData}>
Expand Down
4 changes: 2 additions & 2 deletions filecheck/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ export async function checkFile(
const docFilePath = (await fse.exists(htmlFilePath))
? htmlFilePath
: (await fse.exists(mdFilePath))
? mdFilePath
: null;
? mdFilePath
: null;
if (!docFilePath) {
throw new FixableError(
`${getRelativePath(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
"postcss-loader": "^7.3.3",
"postcss-normalize": "^10.0.1",
"postcss-preset-env": "^9.3.0",
"prettier": "^3.0.3",
"prettier": "^3.1.1",
"prettier-plugin-packagejson": "^2.4.7",
"prompts": "^2.4.2",
"react": "^18.2.0",
Expand Down
4 changes: 2 additions & 2 deletions scripts/ai-help-macros.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ function buildBCDSupportString(
item.release_date ? ` (released ${item.release_date})` : ""
}`
: isNotSupportedAtAll(item)
? "No support"
: null,
? "No support"
: null,
]
.flat()
.filter((x) => Boolean(x));
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12249,10 +12249,10 @@ prettier-plugin-packagejson@^2.4.7:
sort-package-json "2.6.0"
synckit "0.8.6"

prettier@^3.0.3:
version "3.0.3"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.3.tgz#432a51f7ba422d1469096c0fdc28e235db8f9643"
integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==
prettier@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.1.1.tgz#6ba9f23165d690b6cbdaa88cb0807278f7019848"
integrity sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==

pretty-bytes@^5.3.0, pretty-bytes@^5.4.1:
version "5.6.0"
Expand Down

0 comments on commit 5c3841a

Please sign in to comment.