Browse Source

chore: vsh lint

pull/7645/head
xingyu4j 2 weeks ago
parent
commit
7b064e9f33
  1. 4
      package.json
  2. 2
      scripts/vsh/src/lint/index.ts

4
package.json

@ -52,10 +52,6 @@
"dev:play": "pnpm -F @vben/playground run dev",
"format": "vsh lint --format",
"lint": "vsh lint",
"lint:eslint": "eslint . --cache",
"lint:oxc": "oxlint .",
"lint:oxc:type-aware": "oxlint . --type-aware",
"lint:style": "stylelint \"**/*.{vue,css,less,scss}\" --cache",
"postinstall": "pnpm -r run stub --if-present",
"preinstall": "npx only-allow pnpm",
"preview": "turbo-run preview",

2
scripts/vsh/src/lint/index.ts

@ -28,7 +28,7 @@ async function runLint({ format }: LintCommandOptions) {
return;
}
await Promise.all([
execaCommand(`oxfmt .`, {
execaCommand(`oxfmt . --check`, {
stdio: 'inherit',
}),
execaCommand(`oxlint .`, {

Loading…
Cancel
Save