Created
March 10, 2016 19:01
-
-
Save kylehg/29d3fe2b368896064646 to your computer and use it in GitHub Desktop.
Add 'use strict' to all JS files that don't have it
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 characters
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