Skip to content

Parse eslint output into git-blame to unveil the offenders

License

Notifications You must be signed in to change notification settings

stefanmaric/eslintblame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslintblame

Bash script, Fish Shell function, and npm package to parse eslint output into git-blame to unveil the offenders.

eslintblame

Install

Using npm

npm -g install eslintblame

Or on a project:

npm install --save-dev eslintblame

And use it in your scripts:

{
  "scripts": {
    "blame": "eslint . | eslintblame"
  }
}

NOTES: won't work on windows (unless you're using Bash on Windows).

Recomended

Use fisherman:

fisher install stefanmaric/eslintblame

Manual

curl -Lo ~/.config/fish/functions/eslintblame.fish --create-dirs git.io/eslintblame

Shell script as binary file

Download the bash script, copy in somewhere available in your $PATH and give it execution permissions with chmod.

Use

Pipe eslint output to eslintblame

eslint . | eslintblame

Use snazzy to format output:

standard | snazzy | eslintblame

Or replace the command entirely:

snazzy | eslintblame

Notes

eslintblame expects eslint's default stylish format.

Contribute

Just open a Pull Request

License

MIT ♥ — See LICENSE