matrix-org / matrix-js-sdk

Matrix Client-Server SDK for JavaScript
Apache License 2.0
1.5k stars 578 forks source link

Enable all `no-unsafe-*` eslints #2120

Open ShadowJonathan opened 2 years ago

ShadowJonathan commented 2 years ago

This'll make typescript stricter on any usage, disallowing it pretty much anywhere.

Most legitimate usages can be replaced with unknown.

Related: https://github.com/matrix-org/matrix-js-sdk/issues/2115

turt2live commented 2 years ago

Why?

FazioNico commented 2 years ago

More you add typescript restriction more stronger your library will be. And with any strong typescript project like Angular, you have to provide maximum of definition to enforce good practice and reduce internal and compilation errors #2310