Yogesh Galav Posted on Feb 9 Husky pre-commit configuration for Laravel Vuejs. Top comments (1) Subscribe Personal Trusted User Create template Templates let you quickly answer FAQs or store snippets for re-use. Submit Preview Dismiss 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 Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse
Top comments (1)