-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
chore: fix GH actions lint problem matchers issue in PR #4471
Conversation
[V1] Deploy preview failure Built with commit 7886815 https://app.netlify.com/sites/docusaurus-1/deploys/6054dd0b745bda00072744b6 |
Deploy preview for docusaurus-2 ready! Built with commit 7886815 |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-4471--docusaurus-2.netlify.app/ |
I think the point of the problem matcher is that we can see the lint warnings more easily, but I agree that the warnings on unchanged files can be annoying. Maybe we can try to lint only changed files on CI? e.g. https://gist.github.com/seeliang/0f0de424d1cdc4541c338f4ee93b7e6a |
Size Change: 0 B Total Size: 575 kB ℹ️ View Unchanged
|
Thanks, that's an idea but I think it's still useful to run on everything, at least on master. Will merge this for now to reduce the noise, but that could be nice to have relevant warnings show in the PRs indeed :) |
maybe we should just fix those warnings instead of hiding them? |
make sense, and we could re-enable the non-quiet CI linter. There are 55 lint warnings left, do you want to fix those? |
maybe sync with @SamChou19815 as he did some cleanup recently and may already working on the last warnings? |
@armano2 I'm not in the middle of fixing them right now. I'm currently trying to integrate esbuild into docusaurus. |
Motivation
With #4447 we now lint on Github Actions and also use setup-node actions, enabling GH actions "problem matchers".
The problem is that now each PR has a list of reported lint errors in the files tab, like here: https://github.com/facebook/docusaurus/pull/4468/files
This is distracting PR reviews, so I'm using eslint
--quiet
option to ensure we don't care about warnings in CI and they don't end up in the PR.cc @SamChou19815 , any alternative to suggest?