Skip to content

Fix ESLint configuration and resolve all unused variable errors#132

Merged
dennis-zyska merged 2 commits intodevfrom
fix-dependabot_eslint
Apr 1, 2026
Merged

Fix ESLint configuration and resolve all unused variable errors#132
dennis-zyska merged 2 commits intodevfrom
fix-dependabot_eslint

Conversation

@akash9676
Copy link
Copy Markdown
Collaborator

Removed all unused variables, imports, and parameters from the frontend.

New User Features

  • NA

New Dev Features

  • Added a clear convention: prefix unused catch/callback parameters with _

Improvements

  • Removed unused imports and variable declarations across 32 files
  • Cleaner, more maintainable codebase with no dead code warnings

Bug Fixes

  • Fixed make lint crash due to outdated config format

Known Limitations

  • Other lint warnings (unrelated to unused variables) are not addressed in this MR

Future Steps

  • Clean up remaining lint warnings in follow-up MRs

- Changed error variable names in multiple components to use underscore prefix for clarity.
- Updated ESLint configuration to include a new rule for unused variables, enhancing code quality.
- Removed unnecessary variable declarations in various components to streamline code.
@akash9676 akash9676 requested a review from dennis-zyska March 23, 2026 14:22
@akash9676 akash9676 self-assigned this Mar 23, 2026
Copy link
Copy Markdown
Collaborator

@dennis-zyska dennis-zyska left a comment

Choose a reason for hiding this comment

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

Error Variables are sometimes _$e, _e or _error, we should align them. As variable should be self explainable we should use _error for all cases

variant: "success"
});
} catch ($e) {
} catch (_$e) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

if we align it, should we do _error instead of _$e ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

"_" should be fine

variant: "success"
});
} catch ($e) {
} catch {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

here you removed it completely, please align with the other cases

- Updated error variable names across multiple components to use `_error` for consistency.
- Modified ESLint configuration to enforce naming conventions for caught errors.
- Improved error handling in various components to enhance code clarity and maintainability.
@akash9676 akash9676 requested a review from dennis-zyska March 31, 2026 09:28
@dennis-zyska dennis-zyska merged commit c910ac8 into dev Apr 1, 2026
3 checks passed
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.

2 participants