Skip to content

Instantly share code, notes, and snippets.

@nijotz
Created September 26, 2025 20:33
Show Gist options
  • Select an option

  • Save nijotz/6a751b7c5ac58868a270a970bccd39a7 to your computer and use it in GitHub Desktop.

Select an option

Save nijotz/6a751b7c5ac58868a270a970bccd39a7 to your computer and use it in GitHub Desktop.
See who has the most typescript errors
while read FILE LINE COL; do git blame -L $LINE,$LINE $FILE | sed -re 's/.*\(([^0-9]*) [0-9].*/\1/'; done < <(npx tsc --noEmit | grep -Po '[^: ]+\([0-9]+,[0-9]+\)' | sed -re 's/\(([0-9]+),([0-9]+)\)/ \1 \2/g') | sort | uniq -c | sort -nr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment