WebOfTrust / signify-ts

Typescript prototype of Simple KERI for Web Apps
https://weboftrust.github.io/signify-ts/
Apache License 2.0
16 stars 30 forks source link

Resolve eslint warnings #281

Open lenkan opened 3 weeks ago

lenkan commented 3 weeks ago

Currently, there are a few hundred eslint warnings reported in this repository. They were initially errors, but degraded to warnings just to get started with eslint.

I think it is a good idea to fix all these issues and upgrade all of these rules to report as errors. See the list of rules here: https://github.com/WebOfTrust/signify-ts/blob/5801e63e6e367f9d91cc8ae2768ff09967377643/.eslintrc#L10-L30.

Also their documentation and rationale here:

I would rather not make this a discussion item for each and every rule. I think we should just accept the eslint "recommended" rules and go with it. I created two PRs previously that resolves some of these errors:

I also have a third one that resolves all the errors in the /core directory, but I will not keep going with it unless there is interest from the community to get them resolved.

Personally I think it is a good idea to fix these issues as it will force proper use of Typescript and Javascript. It will also force us to provide types, which will make the use of the library much easier. If you agree, please say so in the comments. If you are a reviewer and agree, please review the PRs mentioned above so we can get it going.

iFergal commented 3 weeks ago

Completely agree and think this is long overdue, thank you for taking the time to do this!

I'm not a maintainer but I did check out both PRs and they look good to me. @rodolfomiranda can you take a look sometime?