StudyCrew / StudyCrew

Making Education Accessible, Collaborative, and Engaging
GNU General Public License v3.0
27 stars 29 forks source link

General > Improve Linting #454

Open JacobHeldt opened 4 months ago

JacobHeldt commented 4 months ago

Why

Many developers are encountering eslint errors when pushing changes. The current rules are perceived as excessively strict, leading to the addition of folders to the .eslintignore file and the frequent use of git commit --no-verify -m, which are both suboptimal practices.

Tasks

rayvego commented 4 months ago

Hey, I took a look into this. The errors that eslint is giving are mostly sensible. Some of these errors are described below: (I mean if you have defined that you want it in eslint then you have to follow it...)

Here are some eslint rules that can be set as "warn" instead of "error" as they may be neglected

Unsafe Type Handling (@typescript-eslint/no-unsafe-*)

Misused Promises (@typescript-eslint/no-misused-promises@typescript-eslint/no-floating-promises)

Import Deprecation (import/no-deprecated)

Based on this, we can decide which rules to update and for which rules we need to refactor the codebase.

zaibutcooler commented 3 months ago

removed a lot of the extensions for now.

zaibutcooler commented 3 months ago

anyone still having issues?