chore: bump prettier v3 and format all code (#12111)

* chore: bump prettier v3 and format all code

* chore: mjs config

* chore: revert

* chore: revert

* chore: update lock
This commit is contained in:
neverland
2023-07-22 14:14:14 +08:00
committed by GitHub
parent b601ca1e0b
commit 3dcc92a5c0
209 changed files with 565 additions and 543 deletions
+2 -2
View File
@@ -66,7 +66,7 @@ async function preCompileDir(dir: string) {
return compileSfc(filePath);
}
return Promise.resolve();
})
}),
);
}
@@ -78,7 +78,7 @@ async function compileDir(dir: string, format: Format) {
return isDir(filePath)
? compileDir(filePath, format)
: compileFile(filePath, format);
})
}),
);
}
+1 -1
View File
@@ -64,7 +64,7 @@ export async function changelog(): Promise<void> {
headerPartial,
commitPartial,
transform,
}
},
)
.pipe(createWriteStream(DIST_FILE))
.on('close', () => {
+2 -2
View File
@@ -11,7 +11,7 @@ type RunCommandMessages = {
function runCommand(
cmd: string,
options: string[],
messages: RunCommandMessages
messages: RunCommandMessages,
) {
const spinner = createSpinner(messages.start).start();
@@ -40,7 +40,7 @@ function eslint() {
start: 'Running eslint...',
succeed: 'ESLint Passed.',
failed: 'ESLint failed!',
}
},
);
}