lint.sh 360 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. for project_file in `ls plugins/*/src/tsconfig.json`
  3. do
  4. echo Linting project \"$project_file\"
  5. npx tslint -c tslint.json -p $project_file
  6. if [ $? -gt 0 ]
  7. then
  8. echo
  9. echo Aborting loop.
  10. echo Please, fix the errors of \"$project_file\" to continue.
  11. echo
  12. exit
  13. else
  14. echo
  15. echo Project in excelent shape! :\)
  16. echo
  17. fi
  18. done