Skip to content

Instantly share code, notes, and snippets.

@kylehg
Created March 10, 2016 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylehg/29d3fe2b368896064646 to your computer and use it in GitHub Desktop.
Save kylehg/29d3fe2b368896064646 to your computer and use it in GitHub Desktop.
Add 'use strict' to all JS files that don't have it
FILES=$(git grep -L "use strict" lib/shared/**/*.js)
for f in $FILES; do
echo "'use strict'" | cat - $f > .tmpfile && mv .tmpfile $f
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment