ataylorme / eslint-annotate-action

A GitHub action that takes ESLint results from a JSON file and adds them as annotated pull request comments
MIT License
88 stars 32 forks source link

Monorepo examples #38

Closed zomars closed 2 years ago

zomars commented 2 years ago

Would this work with a monorepo out of the box? Should we merge the results of each package in a single json? Any pointers are appreciated.

ataylorme commented 2 years ago

@zomars this action expects a single ESLint report JSON file as an input. If you have multiple report files from many subdirectories, as example, you will need to combine them first.

The action could probably be modified to accept many report files, instead of just one, but currently does not support that.

zomars commented 2 years ago

I've ended generating reports individually like this and then merging them altogether like this.

ataylorme commented 2 years ago

Thank you for the reply, hopefully it will help someone else.