Skip to content

Excessive ESLint warnings in frontend container logs make debugging difficult #2004

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

Open
vickabire opened this issue May 21, 2025 · 0 comments

Comments

@vickabire
Copy link
Contributor

vickabire commented May 21, 2025

Description

The frontend container logs are cluttered with numerous ESLint warnings, including unused variables, empty functions, and unescaped entities. These warnings span multiple files and fill more than a full screen, making it difficult to identify critical log messages and debug effectively.

Example Warnings

  • no-unused-vars: Several variables are assigned but never used (e.g., panelTestMap, handleLabValidation, etc.)

  • @typescript-eslint/no-empty-function: Functions are defined with no implementation

  • react/no-unescaped-entities: Use of unescaped characters in JSX

Some of the files Affected

  • src/App.js

  • src/components/addOrder/AddOrder.js

  • src/components/addOrder/Index.js

  • src/components/addOrder/SampleType.js

  • src/components/admin/Admin.js

  • src/components/admin/BatchTestReassignmentAndCancellation/BatchTestReassignmentAndCancellation.js

Expected Behavior

Logs should be cleaner, with fewer warnings to allow developers to focus on relevant runtime or build issues.

Suggested Actions

  • Clean up unused variables and imports

  • Remove or implement empty functions

  • Escape special characters in JSX properly

  • Consider adjusting ESLint rules if certain warnings are deemed non-critical for development

screencast showing the errors

openelisfrontenderror.1.1.mp4
@vickabire vickabire changed the title Excessive warnings in frontend container logs hinder debugging Excessive ESLint warnings in frontend container logs make debugging difficult May 21, 2025
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

No branches or pull requests

1 participant