Skip to content

Instantly share code, notes, and snippets.

@claudiofreitas
Created November 30, 2021 12:44
Show Gist options
  • Save claudiofreitas/8718deb8b1f22a000ec38d1bbf911050 to your computer and use it in GitHub Desktop.
Save claudiofreitas/8718deb8b1f22a000ec38d1bbf911050 to your computer and use it in GitHub Desktop.
Count number infractions for each eslint rule in the project
yarn eslint --config .eslintrc.js . | grep ' error \| warn ' | rev | cut -f 1 -w | rev | sort | uniq -c
# output format:
# error Command failed with exit code 1.
# 229 arrow-body-style
# 23 consistent-return
# 869 import/extensions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment