Browse Source

refactor: run lint only on affected projects

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
pull/3973/head
dw-0 10 months ago
parent
commit
dd4a964a5d
  1. 2
      .husky/pre-commit

2
.husky/pre-commit

@ -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 --parallel=2 --base=main --head=HEAD --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…
Cancel
Save