diff --git a/.github/workflows/build-code.yml b/.github/workflows/build-code.yml index 2a3f277143..1e2633b53e 100644 --- a/.github/workflows/build-code.yml +++ b/.github/workflows/build-code.yml @@ -30,7 +30,7 @@ jobs: run: npm ci - name: Check code style - run: npm run lint + run: npm run lint -- --quiet - name: Check formatting run: npm run format:check diff --git a/.husky/pre-commit b/.husky/pre-commit index b82bf440f3..5ca56e9567 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,6 +1,6 @@ -# 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 +# Run linting on staged and unstaged changes and stop if any errors are found +# --quiet skips warning-level rules (temporary until all warnings are fixed) +npm run affected:lint -- --uncommitted --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 +# Check formatting on staged and unstaged changes and stop if any issues are found +npm run format:check -- --uncommitted || exit 1 diff --git a/CHANGELOG.md b/CHANGELOG.md index bf95fce197..6f440ba5df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Restricted the health check endpoint of the AI service (`GET api/v1/health/ai`) to administrators - Increased the timeout in the health check endpoint of the AI service to 30 seconds - Deprecated the `api/v1/access` endpoints in favor of the `api/v1/accesses` endpoints +- Improved the performance of the code style check in the build workflow by skipping the warning-level rules of _ESLint_ - Refreshed the cryptocurrencies list ### Fixed @@ -20,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed the double submission of forms in the account detail dialog, the create or update access dialog, the historical market data editor, the import activities dialog, the coupon system and the create asset profile dialog of the admin control panel - Fixed an issue where users could grant a private access to themselves - Fixed the status code of the endpoints to add and delete a benchmark if the asset profile does not exist +- Fixed the git-hook via `husky` to lint and check the formatting of the uncommitted changes before a commit ## 3.93.0 - 2026-10-25