-
-
Notifications
You must be signed in to change notification settings - Fork 605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Turn on no-explicit-any
#2115
Comments
It'd be good to have rationale for why this change is important to you. |
As I've explained in #2116, it is weird to me that some lints are disabled, as without them, breaking behaviour would be allowed that undermines the basis of TS' type-checking system.
let a: any = {};
let b: number = a;
// now b is typed as a number without errors There is an alternative, let x: unknown = {};
let y: number = x;
// y errors with "unknown is not assignable to number" So, with these alternatives, eradicating To me, this type of change seems obvious, as the alternative would be that behaviour surrounding |
https://github.com/matrix-org/matrix-react-sdk/blob/010cbadc8ecf9f15ade94d87950734c873ca6095/.eslintrc.js#L81-L82;
The text was updated successfully, but these errors were encountered: