From 9e5399fcbef2a23b074fc7cfc736797b4a9598c7 Mon Sep 17 00:00:00 2001 From: SverreNystad Date: Fri, 4 Oct 2024 12:52:59 +0200 Subject: [PATCH] fix: update pre-commit script to run linting in frontend directory --- scripts/pre-commit.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/pre-commit.sh b/scripts/pre-commit.sh index 4c896c7..65de30c 100755 --- a/scripts/pre-commit.sh +++ b/scripts/pre-commit.sh @@ -1,6 +1,7 @@ #!/bin/sh # Run linter on staged JavaScript, TypeScript files -npx next lint --fix +cd frontend +npm run lint --fix if [ $? -ne 0 ]; then echo "Linting failed. Please fix the issues before committing."