0.0.3 • Published 2 years ago

yet-another-eslint-blame v0.0.3

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

yet-another-eslint-blame

Yet another eslint blame (might) with better adaptability.
The input is eslint's output with json format (You can see it here). And it's will run git blame for each eslint report.

Install

pnpm install yet-another-eslint-blame

Usage

Before all

We have to cd into the repo's directory to read git histories.

Read eslint json output from file

  1. Run eslint and output with json:
    eg: Run eslint src -f json -o ./a.json
  2. run yet-another-eslint-blame:
    eg: Run yaeb ./a.json
  3. Enjoy!

Read eslint json output with stdin

  1. Run eslint and output with json, and pipe into yet-another-eslint-blame:
    eg: Run eslint src -f json | yaeb
  2. Enjoy!

Output with markdown todo list

With -f markdown, we will output something like:

- [] [<file and line number with the relative path>](./<file and line number with the relative path>) @<author>

It will looks like:

You can just copy it into gitlab's merge requests or issues.

Options

nametypedefaultdescription
--format or -fjson or markdownjsonGenerate json or markdown todo list.
--output or -ostringSpecify output into a file.
--warn or -wbooleanfalseIncludes warning message.
--suppressed or -sbooleanfalseIncludes suppressed message.
--rule or -rstringSpecify a rule Id.
--groupby or -gruleruleSpecify group by what.
0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago