Commit 504070f3 by chen-d-yu Committed by GitHub

fix: vsh stylelint script fixed (#5729)

1 parent feab6b3b
...@@ -13,7 +13,7 @@ async function runLint({ format }: LintCommandOptions) { ...@@ -13,7 +13,7 @@ async function runLint({ format }: LintCommandOptions) {
// process.env.FORCE_COLOR = '3'; // process.env.FORCE_COLOR = '3';
if (format) { if (format) {
await execaCommand(`stylelint "**/*.{vue,css,less.scss}" --cache --fix`, { await execaCommand(`stylelint "**/*.{vue,css,less,scss}" --cache --fix`, {
stdio: 'inherit', stdio: 'inherit',
}); });
await execaCommand(`eslint . --cache --fix`, { await execaCommand(`eslint . --cache --fix`, {
...@@ -31,7 +31,7 @@ async function runLint({ format }: LintCommandOptions) { ...@@ -31,7 +31,7 @@ async function runLint({ format }: LintCommandOptions) {
execaCommand(`prettier . --ignore-unknown --check --cache`, { execaCommand(`prettier . --ignore-unknown --check --cache`, {
stdio: 'inherit', stdio: 'inherit',
}), }),
execaCommand(`stylelint "**/*.{vue,css,less.scss}" --cache`, { execaCommand(`stylelint "**/*.{vue,css,less,scss}" --cache`, {
stdio: 'inherit', stdio: 'inherit',
}), }),
]); ]);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!