build: migrate formatting pipeline to oxfmt

This commit is contained in:
xingyu4j
2026-03-13 21:56:08 +08:00
parent de0181e0d9
commit 6dabb848a5
22 changed files with 318 additions and 180 deletions

View File

@@ -16,7 +16,7 @@ async function runLint({ format }: LintCommandOptions) {
await execaCommand(`stylelint "**/*.{vue,css,less,scss}" --cache --fix`, {
stdio: 'inherit',
});
await execaCommand(`prettier . --write --cache --log-level warn`, {
await execaCommand(`oxfmt .`, {
stdio: 'inherit',
});
await execaCommand(`oxlint . --fix`, {
@@ -31,7 +31,7 @@ async function runLint({ format }: LintCommandOptions) {
execaCommand(`eslint . --cache`, {
stdio: 'inherit',
}),
execaCommand(`prettier . --ignore-unknown --check --cache`, {
execaCommand(`oxfmt --check .`, {
stdio: 'inherit',
}),
execaCommand(`stylelint "**/*.{vue,css,less,scss}" --cache`, {