-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Use strictNullChecks
in matrix-react-sdk
#21967
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
Comments
strictNullChecks
in matrix-react-sdk
We currently have It would be nice to start using this for all of our new code and only apply Looks like there are some options for ESLint which we could base off of: For staged files:
Alternatively, we could add an extra assertion that the the number of |
Thanks @MadLittleMods, that seems like a great approach. If you're interested in helping working through that backlog .. we could use as many hands as we can get to chip away at it |
Things remaining:
|
Uh oh!
There was an error while loading. Please reload this page.
Your use case
https://www.typescriptlang.org/tsconfig#strictNullChecks
This will reduce the number of runtime errors caused by unexpected
null
andundefined
values by disallowing them as a value unless explicitly permitted.Related: matrix-org/matrix-js-sdk#2112
Have you considered any alternatives?
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: