Skip to content

Instantly share code, notes, and snippets.

@packrat386
Created February 25, 2022 21:54
Show Gist options
  • Save packrat386/58d7e59813673019418991fe15d71b4c to your computer and use it in GitHub Desktop.
Save packrat386/58d7e59813673019418991fe15d71b4c to your computer and use it in GitHub Desktop.
autoremove ts-expect-error comments
grep TS2578 <<<$(yarn tsc --pretty false 2>/dev/null || true) |
cut -d ':' -f 1 |
tr "()," " " |
awk '{ files[$1] = files [$1] $2 "d;" } END { for (f in files) { print "sed -i \"\" \"" files[f] "\" " f } }' |
bash -ex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment