existence-master / existence-master/Sentient
[REFACTOR] Fix linting errors
- 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.

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
Assessment
This issue has not been assessed yet.