Bump Prettier dependency to 3.0.0
This commit is contained in:
1 parent
151cc2c4f2
commit
fa48415617
338 files changed
+1483
-1434
No files matched your search
@@ -8,7 +8,7 @@ const { format } = await import(`./${version}/dist/index.mjs`);
|
||||
|
||||
const sourceText = readFileSync(
|
||||
process.env.PRETTIER_PERF_FILENAME || "../../src/language-js/utils/index.js",
|
||||
"utf8"
|
||||
"utf8",
|
||||
);
|
||||
|
||||
for (let i = 0; i < groupCount; i++) {
|
||||
@@ -21,8 +21,8 @@ for (let i = 0; i < groupCount; i++) {
|
||||
if (method === "parallel") {
|
||||
await Promise.allSettled(
|
||||
Array.from({ length: groupSize }, () =>
|
||||
format(sourceText, { parser: "typescript" })
|
||||
)
|
||||
format(sourceText, { parser: "typescript" }),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user