existence-master / existence-master/Sentient

[REFACTOR] Fix linting errors

Open
#7 2 comments 0 reactions 0 assignees View on GitHub
good first issue help wanted
Dominant language
Python
Stars
690
Forks
102
PR merge metrics
No merged PRs in 30d

Description

### 🔍 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.
```bash
cd src/interface
```
Run the lint script using npm.
```bash
npm run lint
```

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

![Image](https://github.com/user-attachments/assets/98d28065-4c89-4ec8-ae30-9eca8470dae1)

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
- Docs/Resources: [ESLint Docs](https://eslint.org/docs/latest/)

### ✅ Definition of Done
- [ ] Code is cleaner and more modular.
- The code passes the ESLint checks.
- No breaking changes introduced.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.