From dd4a964a5dc522e50a2cef64b3e6a576fa01fd38 Mon Sep 17 00:00:00 2001 From: dw-0 Date: Tue, 22 Oct 2024 22:11:21 +0200 Subject: [PATCH] refactor: run lint only on affected projects Signed-off-by: Dominik Willner --- .husky/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 4bf77522a..6988f0f84 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,6 +1,6 @@ # Run linting and stop the commit process if any errors are found # --quiet suppresses warnings (temporary until all warnings are fixed) -npm run lint --quiet || exit 1 +npm run affected:lint --parallel=2 --base=main --head=HEAD --quiet || exit 1 # Check formatting on modified and uncommitted files, stop the commit if issues are found npm run format:check --uncommitted || exit 1