ghostfolio/.husky/pre-commit
dw-0 fd26253e7a
Feature/set up husky and pre-commit hook for linting and format check (#3867)
* Set up husky and pre-commit hook for linting and format check

* Update changelog

---------

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2024-10-05 10:45:39 +02:00

7 lines
304 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 lint --quiet || exit 1
# Check formatting on modified and uncommitted files, stop the commit if issues are found
npm run format:check --uncommitted || exit 1