Skip to content

Commit

Permalink
npm run lint only when changes in container (#3550)
Browse files Browse the repository at this point in the history
Co-authored-by: Ndricim Rrapi <[email protected]>
  • Loading branch information
VincentUllal and ndricimrr authored Dec 6, 2023
1 parent 3e3d636 commit 2c47dbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
},
"husky": {
"hooks": {
"pre-commit": "npm run lint --prefix=container && npm run code-quality && ./scripts/hooks/remove-test-prefixes.sh && ./scripts/hooks/generate-docu.sh && ./scripts/hooks/prevent-illegal-characters.sh"
"pre-commit": "git diff --quiet HEAD -- container || npm run lint --prefix=container && npm run code-quality ./scripts/hooks/remove-test-prefixes.sh && ./scripts/hooks/generate-docu.sh && ./scripts/hooks/prevent-illegal-characters.sh"
}
},
"codeQuality": {
Expand Down

0 comments on commit 2c47dbe

Please sign in to comment.