mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
* Optimize pre-commit hook by linting only affected projects * Update changelog --------- Signed-off-by: Dominik Willner <th33xitus@gmail.com>pull/3976/head
dw-0
3 months ago
committed by
GitHub
2 changed files with 2 additions and 1 deletions
@ -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