Skip to content

Instantly share code, notes, and snippets.

@jonchurch
Created February 6, 2023 19:13
Show Gist options
  • Save jonchurch/c4ab048c81b0c0caba2cca4f0cefbf52 to your computer and use it in GitHub Desktop.
Save jonchurch/c4ab048c81b0c0caba2cca4f0cefbf52 to your computer and use it in GitHub Desktop.
Get unique filenames from eslint output
# input looks like
# ~/proj/src/some/file/path.tsx(60,9): error jest/no-conditional-expect : Avoid calling `expect` conditionally`
npm run lint -- --quiet | awk 'BEGIN { FS="(" }; {print $1O}' | uniq -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment