Last active
          February 14, 2022 12:02 
        
      - 
      
 - 
        
Save felippenardi/7810b0824f47bf838eb2c8a75a09e560 to your computer and use it in GitHub Desktop.  
Revisions
- 
        
felippenardi revised this gist
Oct 11, 2018 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ CHANGED_FILES=`git diff origin/master...HEAD --name-only` node_modules/eslint/bin/eslint.js -f json $CHANGED_FILES --quiet | node_modules/eslines/index.js --quiet if [[ $? != 0 ]] ; then echo "Fix style violations" exit 1 fi echo "All changed files are good"  - 
        
felippenardi created this gist
Oct 11, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ #!/bin/bash CHANGED_FILES=`git diff origin/master...HEAD --name-only` node_modules/eslint/bin/eslint.js -f json $CHANGED_FILES --quiet | node_modules/eslines/index.js --quiet if [[ $? != 0 ]] ; then ./gitstatus.sh Eslint failure "Fix style violations" exit 1 fi ./gitstatus.sh Eslint success "All changed files are good"