Просмотр исходного кода

test: run linting during npm test (#2981)

Run linting checks alongside tests to catch style and formatting issues before pushing code or creating PRs, saving developers time by identifying problems earlier.

- Added lint:* to npm test command execution
- Maintains parallel execution on non-Windows systems

Signed-off-by: Eric Wheeler <[email protected]>
Co-authored-by: Eric Wheeler <[email protected]>
KJ7LNW 8 месяцев назад
Родитель
Сommit
0549a02876
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      scripts/run-tests.js

+ 2 - 2
scripts/run-tests.js

@@ -2,7 +2,7 @@
 const { execSync } = require("child_process")
 
 if (process.platform === "win32") {
-	execSync("npm-run-all test:*", { stdio: "inherit" })
+	execSync("npm-run-all test:* lint:*", { stdio: "inherit" })
 } else {
-	execSync("npm-run-all -p test:*", { stdio: "inherit" })
+	execSync("npm-run-all -p test:* lint:*", { stdio: "inherit" })
 }