Skip to content

Instantly share code, notes, and snippets.

@jamesholcomb
Last active October 12, 2022 14:17
Show Gist options
  • Save jamesholcomb/f3b7015d930eecce220a300196c8ebcd to your computer and use it in GitHub Desktop.
Save jamesholcomb/f3b7015d930eecce220a300196c8ebcd to your computer and use it in GitHub Desktop.
Code mod to remove // @ts-check from
# recurisvely remove lines containing // @ts-check from all javascript files in current directory
find . -type f -name "*.js" -print0 | xargs -0 sed -i '' -e '/@ts-check/d'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment