ghostfolio/.husky/pre-commit
dw-0 e311ede3af
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>
2024-10-23 20:36:54 +02:00

7 lines
350 B
Plaintext

# Run linting and stop the commit process if any errors are found
# --quiet suppresses warnings (temporary until all warnings are fixed)
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
npm run format:check --uncommitted || exit 1