Update prettier to 3.3.3

This commit is contained in:
Fedor Indutny 2024-07-23 17:31:40 -07:00 committed by GitHub
parent 1773ad1e11
commit 24a22bf191
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
109 changed files with 452 additions and 392 deletions

View file

@ -266,7 +266,7 @@ async function main() {
}
const prettierConfig = await prettier.resolveConfig(destinationPath);
const output = prettier.format(unformattedOutput, {
const output = await prettier.format(unformattedOutput, {
...prettierConfig,
filepath: destinationPath,
});

View file

@ -87,7 +87,7 @@ async function main(): Promise<void> {
join(__dirname, '..', '..', 'build')
);
const output = prettier.format(JSON.stringify(resources, null, 2), {
const output = await prettier.format(JSON.stringify(resources, null, 2), {
...prettierConfig,
filepath: resourcesPath,
});

View file

@ -81,7 +81,7 @@ async function main(): Promise<void> {
);
{
const output = prettier.format(JSON.stringify(jumbomoji, null, 2), {
const output = await prettier.format(JSON.stringify(jumbomoji, null, 2), {
...prettierConfig,
filepath: manifestPath,
});
@ -89,7 +89,7 @@ async function main(): Promise<void> {
}
{
const output = prettier.format(JSON.stringify(resources, null, 2), {
const output = await prettier.format(JSON.stringify(resources, null, 2), {
...prettierConfig,
filepath: resourcesPath,
});

View file

@ -106,7 +106,7 @@ async function main() {
delete typedValue.description;
}
delete json.smartling;
const output = prettier.format(JSON.stringify(json, null, 2), {
const output = await prettier.format(JSON.stringify(json, null, 2), {
...prettierConfig,
filepath: targetFile,
});