From 8ff3140e773654715b4131b98daf89548f89946c Mon Sep 17 00:00:00 2001 From: Vaishnavi Parabkar Date: Mon, 13 Oct 2025 13:56:47 +0000 Subject: [PATCH] chore: fix formatting issues --- .husky/pre-commit | 10 ++++++---- .../src/lib/logo-carousel/logo-carousel.component.ts | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index b82bf440f..d78d4cc9c 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,6 +1,8 @@ -# Run linting and stop the commit process if any errors are found -# --quiet suppresses warnings (temporary until all warnings are fixed) +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +# Run linting on affected files 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 +# Check formatting only on staged files +npx nx format:check --files=$(git diff --cached --name-only --diff-filter=ACM | grep '\.ts\|\.tsx\|\.js\|\.jsx') || exit 1 diff --git a/libs/ui/src/lib/logo-carousel/logo-carousel.component.ts b/libs/ui/src/lib/logo-carousel/logo-carousel.component.ts index 57ebc8fb1..c5812d088 100644 --- a/libs/ui/src/lib/logo-carousel/logo-carousel.component.ts +++ b/libs/ui/src/lib/logo-carousel/logo-carousel.component.ts @@ -84,7 +84,7 @@ export class GfLogoCarouselComponent { }, { className: 'logo-selfhostedhub', - isMask: true, + isMask: true, name: 'SelfhostedHub', title: 'SelfhostedHub – Discover self-hosted software solutions', url: 'https://selfhostedhub.com'