Yogesh Galav Posted on Feb 9 Husky pre-commit configuration for Laravel Vuejs. Top comments (1) Subscribe Collapse Expand Yogesh Galav Yogesh Galav Yogesh Galav Follow Creating better product for better society. Email mr.yogesh.galav@gmail.com Location Jaipur, Rajasthan, India Work Tech Lead, Software Engineer Joined Aug 9, 2022 • Feb 9 Dropdown menu Copy link Hide # .husky/pre-commit ./vendor/bin/duster fix --dirty || true npx lint-staged || true # Get list of staged PHP files STAGED_FILES=$(git diff --cached --name-only --diff-filter=AM | grep '\.php$' | tr '\n' ' ') if [ -n "$STAGED_FILES" ]; then # Run PHPStan only on staged PHP files composer phpstan $STAGED_FILES || true else echo "No PHP files to analyze." fi Enter fullscreen mode Exit fullscreen mode Code of Conduct • Report abuse For further actions, you may consider blocking this person and/or reporting abuse
Top comments (1)