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.
pnpm install yet-another-eslint-blame
We have to cd
into the repo's directory to read git histories.
- Run
eslint
and output with json:
eg: Runeslint src -f json -o ./a.json
- run
yet-another-eslint-blame
:
eg: Runyaeb ./a.json
- Enjoy!
- Run
eslint
and output with json, and pipe intoyet-another-eslint-blame
:
eg: Runeslint src -f json | yaeb
- Enjoy!
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:
- package.json#L2 @kingwl
You can just copy it into gitlab's merge requests or issues.
name | type | default | description |
---|---|---|---|
--format or -f |
json or markdown |
json |
Generate json or markdown todo list. |
--output or -o |
string |
Specify output into a file. | |
--warn or -w |
boolean |
false |
Includes warning message. |
--suppressed or -s |
boolean |
false |
Includes suppressed message. |
--rule or -r |
string |
Specify a rule Id. | |
--groupby or -g |
rule |
rule |
Specify group by what. |