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

Change ESLint audit's display value to "passed" instead of fallback to 0 #305

Closed
2 tasks done
matejchalk opened this issue Nov 22, 2023 · 0 comments · Fixed by #379 or #385
Closed
2 tasks done

Change ESLint audit's display value to "passed" instead of fallback to 0 #305

matejchalk opened this issue Nov 22, 2023 · 0 comments · Fixed by #379 or #385
Assignees
Labels

Comments

@matejchalk
Copy link
Collaborator

matejchalk commented Nov 22, 2023

Currently, audits from ESLint plugin provide a displayValue only when there are errors or warnings (e.g. 5 errors, 12 warnings, in rare cases 1 error, 21 warnings). When no displayValue is provided, we fallback to value, so for ESLint audits without errors we display 0. It would be better to display passed.

  • when there are no issues detected, set displayValue: 'passed'
  • update snapshots in tests with -u (0passed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment