Skip to content

[REFACTOR] Fix linting errors #7

@Kabeer2004

Description

@Kabeer2004

🔍 Description

We want to use linting to maintain code standards in the JavaScript code - there are several linting errors that need to be fixed.

🎯 Goals

  • Improve code readability/maintainability.
  • Improve adherence to best practices.

📌 Areas to Refactor

  • Javascript files for the Electron Client

💡 Suggested Approach

Navigate to the interface folder for the Electron client.

cd src/interface

Run the lint script using npm.

npm run lint

This will show you certain errors that exist with linting in the JS codebase. Here is an example.

Image

Resolve the errors. Also verify the eslint config and remove unnecessary checks (for example, TypeScript checks are not required since our codebase is in JavaScript)

📚 References

✅ Definition of Done

  • Code is cleaner and more modular.
  • The code passes the ESLint checks.
  • No breaking changes introduced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions