Skip to content

Commit

Permalink
fix: update pre-commit script to run linting in frontend directory
Browse files Browse the repository at this point in the history
  • Loading branch information
SverreNystad committed Oct 4, 2024
1 parent e5f6d6a commit 9e5399f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/pre-commit.sh
Original file line number Diff line number Diff line change
@@ -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."
Expand Down

0 comments on commit 9e5399f

Please sign in to comment.