mirror of
https://github.com/imdap/ruoyi-plus-vben5.git
synced 2026-04-29 21:11:25 +08:00
build: migrate formatting pipeline to oxfmt
This commit is contained in:
@@ -22,8 +22,8 @@ const DEFAULT_CONFIG = {
|
||||
'@vben/commitlint-config',
|
||||
'@vben/eslint-config',
|
||||
'@vben/node-utils',
|
||||
'@vben/oxfmt-config',
|
||||
'@vben/oxlint-config',
|
||||
'@vben/prettier-config',
|
||||
'@vben/stylelint-config',
|
||||
'@vben/tsconfig',
|
||||
'@vben/vite-config',
|
||||
|
||||
@@ -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`, {
|
||||
|
||||
Reference in New Issue
Block a user