matrix-js-sdk
matrix-js-sdk copied to clipboard
Enable all `no-unsafe-*` eslints
- https://typescript-eslint.io/rules/no-unsafe-argument
- https://typescript-eslint.io/rules/no-unsafe-assignment
- https://typescript-eslint.io/rules/no-unsafe-call
- https://typescript-eslint.io/rules/no-unsafe-member-access
- https://typescript-eslint.io/rules/no-unsafe-return
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
Why?
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