浏览代码

fix: vsh stylelint script fixed (#5729)

chen-d-yu 2 天之前
父节点
当前提交
504070f3eb
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      scripts/vsh/src/lint/index.ts

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

@@ -13,7 +13,7 @@ async function runLint({ format }: LintCommandOptions) {
   // process.env.FORCE_COLOR = '3';
 
   if (format) {
-    await execaCommand(`stylelint "**/*.{vue,css,less.scss}" --cache --fix`, {
+    await execaCommand(`stylelint "**/*.{vue,css,less,scss}" --cache --fix`, {
       stdio: 'inherit',
     });
     await execaCommand(`eslint . --cache --fix`, {
@@ -31,7 +31,7 @@ async function runLint({ format }: LintCommandOptions) {
     execaCommand(`prettier . --ignore-unknown --check --cache`, {
       stdio: 'inherit',
     }),
-    execaCommand(`stylelint "**/*.{vue,css,less.scss}" --cache`, {
+    execaCommand(`stylelint "**/*.{vue,css,less,scss}" --cache`, {
       stdio: 'inherit',
     }),
   ]);