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."