Bump Prettier dependency to 3.2.0

This commit is contained in:
Sosuke Suzuki committed 2024-01-13 01:17:26 +09:00
1 parent fccadb4835
commit ee0d667fa2
5 files changed
+10 -19

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "prettier",
"version": "3.2.0",
"version": "3.3.0-dev",
"description": "Prettier is an opinionated code formatter",
"bin": "./bin/prettier.cjs",
"repository": "prettier/prettier",
@@ -147,7 +147,7 @@
"jest-watch-typeahead": "2.2.2",
"magic-string": "0.30.5",
"npm-run-all2": "6.1.1",
"prettier": "3.1.1",
"prettier": "3.2.0",
"pretty-bytes": "6.1.1",
"rollup-plugin-license": "3.2.0",
"semver": "7.5.4",
+2 -3
View File
@@ -39,9 +39,8 @@ type ArrayProperties<T> = {
// A union of the properties of the given array T that can be used to index it.
// If the array is a tuple, then that's going to be the explicit indices of the
// array, otherwise it's going to just be number.
type IndexProperties<T extends { length: number }> = IsTuple<T> extends true
? Exclude<Partial<T>["length"], T["length"]>
: number;
type IndexProperties<T extends { length: number }> =
IsTuple<T> extends true ? Exclude<Partial<T>["length"], T["length"]> : number;
// Effectively performing T[P], except that it's telling TypeScript that it's
// safe to do this for tuples, arrays, or objects.
+2 -2
View File
@@ -45,8 +45,8 @@ function getLanguageByInterpreter(languages, file) {
return;
}
return languages.find(
(language) => language.interpreters?.includes(interpreter),
return languages.find((language) =>
language.interpreters?.includes(interpreter),
);
}
+2 -1
View File
@@ -336,7 +336,8 @@ const UsersSection = ({ language }) => {
</a>
<div style={{ marginLeft: ".7em", width: "260px" }}>
<p>
More than <strong data-placeholder="dependent-npm">16.2k</strong>{" "}
More than{" "}
<strong data-placeholder="dependent-npm">16.2k</strong>{" "}
dependent packages on npm
</p>
<Button href="https://www.npmjs.com/browse/depended/prettier">
+2 -11
View File
@@ -7317,16 +7317,7 @@ __metadata:
languageName: node
linkType: hard
"prettier@npm:3.1.1":
version: 3.1.1
resolution: "prettier@npm:3.1.1"
bin:
prettier: bin/prettier.cjs
checksum: 26a249f321b97d26c04483f1bf2eeb22e082a76f4222a2c922bebdc60111691aad4ec3979610e83942e0b956058ec361d9e9c81c185172264eb6db9aa678082b
languageName: node
linkType: hard
"prettier@workspace:.":
"prettier@npm:3.2.0, prettier@workspace:.":
version: 0.0.0-use.local
resolution: "prettier@workspace:."
dependencies:
@@ -7431,7 +7422,7 @@ __metadata:
postcss-scss: "npm:4.0.9"
postcss-selector-parser: "npm:2.2.3"
postcss-values-parser: "npm:2.0.1"
prettier: "npm:3.1.1"
prettier: "npm:3.2.0"
pretty-bytes: "npm:6.1.1"
regexp-util: "npm:2.0.0"
remark-footnotes: "npm:2.0.0"