Skip to content
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

Disable warnings when running in a GitHub Actions workflow #508

Merged
merged 2 commits into from Dec 8, 2020

Conversation

sindresorhus
Copy link
Member

@sindresorhus sindresorhus commented Nov 22, 2020


IssueHunt Summary

Referenced issues

This pull request has been submitted to:


readme.md Outdated
@@ -292,6 +292,10 @@ XO will handle the [@typescript-eslint/parser `project` option](https://github.c

See [eslint-config-xo-flow#use-with-xo](https://github.com/xojs/eslint-config-xo-flow#use-with-xo)

## GitHub Actions

XO uses a different formatter when running in a GitHub Actions workflow to be able to get inline annotations. XO also disables warnings here.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fregante Do you know any page I could link to with more info about the inline annotations?

Copy link
Member

@fregante fregante Nov 22, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fregante
Copy link
Member

I think CI would be the best place to show warnings, the problem is that they trigger annotations. If it were easy, I'd still have it display warnings without triggering annotations, but IMHO this is an acceptable stopgap.

@sindresorhus sindresorhus merged commit 7731ea1 into master Dec 8, 2020
@sindresorhus sindresorhus deleted the gh-actions branch December 8, 2020 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants