Skip to content

Commit

Permalink
chore(deps-dev): bump prettier from 3.1.1 to 3.2.4 (#10333)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Jan 22, 2024
1 parent bdc9602 commit f6bf57d
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 29 deletions.
5 changes: 2 additions & 3 deletions build/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,8 @@ async function buildDocuments(
// https://github.com/search?q=repo%3Amdn%2Fdiffery+allBrowserCompat&type=code
const allBrowserCompat = new Set<string>();
Object.values(metadata).forEach((localeMeta) =>
localeMeta.forEach(
(doc) =>
doc.browserCompat?.forEach((query) => allBrowserCompat.add(query))
localeMeta.forEach((doc) =>
doc.browserCompat?.forEach((query) => allBrowserCompat.add(query))
)
);
fs.writeFileSync(
Expand Down
4 changes: 2 additions & 2 deletions client/pwa/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"noEmit": false,
"preserveConstEnums": true,
"strictNullChecks": false,
"target": "ES2021"
"target": "ES2021",
},
"include": ["src"],
"exclude": []
"exclude": [],
}
9 changes: 4 additions & 5 deletions client/src/document/organisms/sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@ export function SidebarContainer({
const sidebar = document.querySelector("#sidebar-quicklinks");
const currentSidebarItem = sidebar?.querySelector("em");
if (sidebar && currentSidebarItem) {
[sidebar, sidebar.querySelector(".sidebar-inner-nav")].forEach(
(n) =>
n?.scrollTo({
top: currentSidebarItem.offsetTop - window.innerHeight / 4,
})
[sidebar, sidebar.querySelector(".sidebar-inner-nav")].forEach((n) =>
n?.scrollTo({
top: currentSidebarItem.offsetTop - window.innerHeight / 4,
})
);
}
}, []);
Expand Down
6 changes: 3 additions & 3 deletions client/src/site-search/search-results.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ function Results({
LANGUAGES.has(document.locale) && (
<span
className="locale-indicator"
title={`The linked document is in ${LANGUAGES.get(
document.locale
)?.English} which is different from your current locale.`}
title={`The linked document is in ${
LANGUAGES.get(document.locale)?.English
} which is different from your current locale.`}
>
{LANGUAGES.get(document.locale)?.English}
</span>
Expand Down
4 changes: 2 additions & 2 deletions client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"target": "ES2020"
"target": "ES2020",
},
"include": ["src"]
"include": ["src"],
}
6 changes: 3 additions & 3 deletions cloud-function/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"checkJs": true
"checkJs": true,
},
"ts-node": {
"esm": true,
"swc": true
"swc": true,
},
"exclude": ["src/internal/*"]
"exclude": ["src/internal/*"],
}
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.4",
"postcss-normalize": "^10.0.1",
"postcss-preset-env": "^9.3.0",
"prettier": "^3.1.1",
"prettier": "^3.2.4",
"prettier-plugin-packagejson": "^2.4.9",
"prompts": "^2.4.2",
"react": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion ssr/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../client/tsconfig.json",
"include": ["."],
"exclude": ["dist"]
"exclude": ["dist"],
}
10 changes: 5 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@
"paths": {
"front-matter": ["./type-fixes/front-matter.js"],
"@mdn/browser-compat-data/types": [
"./node_modules/@mdn/browser-compat-data/types.d.ts"
"./node_modules/@mdn/browser-compat-data/types.d.ts",
],
"web-features": ["./type-fixes/web-features.js"]
"web-features": ["./type-fixes/web-features.js"],
},
"preserveWatchOutput": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"strictNullChecks": false,
"target": "ES2020"
"target": "ES2020",
},
"ts-node": {
"esm": true,
"swc": true
"swc": true,
},
"exclude": ["client", "ssr"]
"exclude": ["client", "ssr"],
}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12202,10 +12202,10 @@ prettier-plugin-packagejson@^2.4.9:
sort-package-json "2.6.0"
synckit "0.9.0"

prettier@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.1.1.tgz#6ba9f23165d690b6cbdaa88cb0807278f7019848"
integrity sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==
prettier@^3.2.4:
version "3.2.4"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.2.4.tgz#4723cadeac2ce7c9227de758e5ff9b14e075f283"
integrity sha512-FWu1oLHKCrtpO1ypU6J0SbK2d9Ckwysq6bHj/uaCP26DxrPpppCLQRGVuqAxSTvhF00AcvDRyYrLNW7ocBhFFQ==

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

0 comments on commit f6bf57d

Please sign in to comment.