Skip to content

Instantly share code, notes, and snippets.

@andreaskian
Created January 5, 2021 19:43
Show Gist options
  • Save andreaskian/70fba23404ad1afba3d834ee26cd3452 to your computer and use it in GitHub Desktop.
Save andreaskian/70fba23404ad1afba3d834ee26cd3452 to your computer and use it in GitHub Desktop.

Run eslint against all .ts and .tsx files, -deleted, in branch:

git diff --diff-filter=d --name-only master | grep -E '\.(ts|tsx)$' | xargs npx eslint

to copy outout to clipboard pipe in pbcopy:

git diff --diff-filter=d --name-only master | grep -E '\.(ts|tsx)$' | xargs npx eslint | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment