-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(lint): add output file option (close #4849) #4850
feat(lint): add output file option (close #4849) #4850
Conversation
@LinusBorg I just noticed your comments in #4007 -- after I submitted this PR.
Maybe you will change your mind about implementing the
Does this documentation exist? |
For some more context I am currently adding GitHub actions to existing Vue projects. I was able to get However, when if there are errors (or even warnings, which still send a status code of I would like to create an actions similar to this ESLint action that annotates the diffs of the pull request with lint errors and warnings. In order to do that, I need the results of the Vue lint report to analyze -- outside of just being printed in the terminal. Saving the results to a JSON file will allow me to accomplish that. Once I have the JSON, I can parse it, loop through all errors and warning, then call the GitHub API to add the appropriate annotations to the pull request from a custom GitHub action. |
Adds an `output-file` option to the ESLint plugin that saves lint report results to the specified file path. This mimics the [ESLint option](https://eslint.org/docs/user-guide/command-line-interface#options) of the same name.
Are there any reasons why the Pull request hangs? I find the "output-file" option really handy because currently the eslint plugin outputs a string (" DONE No lint errors found!") if no errors are found and ignores the --format setting. Also the change in the documentation would saved me a lot of time, because it is currently just wrong. |
@Herr-Sepp I'm not sure what you mean. All the tests are passing. If you mean why hasn't it been merged, like most open-source projects, the maintainers of this project donate their time. It is best to have patience, I'm sure they will get to this when they can. I am grateful for their work and Vue/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks for the PR and thanks for your understanding!
Nice. I wanted this --output-file and --format option for ci too. |
Thank you for merging! I'm looking forward to using this when it makes it into a release |
Add an
output-file
option to the ESLint plugin that saves lint report results to the specified file path.This mimics the ESLint option of the same name
What kind of change does this PR introduce? (check at least one)
Does this PR introduce a breaking change? (check one)
Other information:
Closes #4849