Parcourir la source

chore: vsh lint

xingyu4j il y a 3 mois
Parent
commit
100aaa4cee
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      scripts/vsh/src/lint/index.ts

+ 4 - 4
scripts/vsh/src/lint/index.ts

@@ -16,10 +16,10 @@ async function runLint({ format }: LintCommandOptions) {
     await execaCommand(`stylelint "**/*.{vue,css,less,scss}" --cache --fix`, {
       stdio: 'inherit',
     });
-    await execaCommand(`oxfmt .`, {
+    await execaCommand(`oxfmt`, {
       stdio: 'inherit',
     });
-    await execaCommand(`oxlint . --fix`, {
+    await execaCommand(`oxlint --fix`, {
       stdio: 'inherit',
     });
     await execaCommand(`eslint . --cache --fix`, {
@@ -28,10 +28,10 @@ async function runLint({ format }: LintCommandOptions) {
     return;
   }
   await Promise.all([
-    execaCommand(`oxfmt . --check`, {
+    execaCommand(`oxfmt --check`, {
       stdio: 'inherit',
     }),
-    execaCommand(`oxlint .`, {
+    execaCommand(`oxlint`, {
       stdio: 'inherit',
     }),
     execaCommand(`eslint . --cache`, {