Feature/Optimize pre-commit hook by linting only affected projects (#3973)
* Optimize pre-commit hook by linting only affected projects * Update changelog --------- Signed-off-by: Dominik Willner <th33xitus@gmail.com>pull/3976/head
parent
19b8c514f2
commit
e311ede3af
@ -1,6 +1,6 @@
|
|||||||
# Run linting and stop the commit process if any errors are found
|
# Run linting and stop the commit process if any errors are found
|
||||||
# --quiet suppresses warnings (temporary until all warnings are fixed)
|
# --quiet suppresses warnings (temporary until all warnings are fixed)
|
||||||
npm run lint --quiet || exit 1
|
npm run affected:lint --base=main --head=HEAD --parallel=2 --quiet || exit 1
|
||||||
|
|
||||||
# Check formatting on modified and uncommitted files, stop the commit if issues are found
|
# Check formatting on modified and uncommitted files, stop the commit if issues are found
|
||||||
npm run format:check --uncommitted || exit 1
|
npm run format:check --uncommitted || exit 1
|
||||||
|
Loading…
Reference in new issue