-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Use strictNullChecks
in matrix-react-sdk
#21967
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:
|
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
Tasks
strictNullChecks
tosrc/voice-broadcast/*
vector-im/element-web#24659strictNullChecks
tosrc/settings/*
vector-im/element-web#24658strictNullChecks
tosrc/editor/*
vector-im/element-web#24657strictNullChecks
tosrc/components/views/room_settings/*
vector-im/element-web#24656strictNullChecks
tosrc/components/views/location/*
vector-im/element-web#24655strictNullChecks
tosrc/components/views/emojipicker/*
vector-im/element-web#24654strictNullChecks
tosrc/components/views/beacon/*
vector-im/element-web#24653strictNullChecks
tosrc/components/views/avatars/*
vector-im/element-web#24652strictNullChecks
tosrc/components/views/auth/*
vector-im/element-web#24651strictNullChecks
tosrc/components/views/audio_messages/*
vector-im/element-web#24650strictNullChecks
tosrc/async-components/*
vector-im/element-web#24649strictNullChecks
tosrc/utils/beacon/*
vector-im/element-web#24756strictNullChecks
tosrc/stores/widgets/*
vector-im/element-web#24755strictNullChecks
tosrc/rageshake/*
vector-im/element-web#24754strictNullChecks
tosrc/resizer/*
vector-im/element-web#24753strictNullChecks
tosrc/utils/exportUtils
vector-im/element-web#24822strictNullChecks
tosrc/components/views/dialogs/devtools/*
vector-im/element-web#24836strictNullChecks
tosrc/components/structures/auth/*
vector-im/element-web#24935strictNullChecks
tosrc/components/structures/Space*
vector-im/element-web#24936strictNullChecks
tosrc/components/structures/Thread*
vector-im/element-web#24938strictNullChecks
tosrc/components/structures/Space*
vector-im/element-web#24937strictNullChecks
tosrc/components/views/elements/*
vector-im/element-web#24940strictNullChecks
tosrc/components/views/messages/*
vector-im/element-web#24939strictNullChecks
tosrc/components/views/rooms/wysiwyg_composer/*
vector-im/element-web#24941strictNullChecks
tosrc/components/views/settings/*
vector-im/element-web#25217strictNullChecks
tosrc/contexts/*
vector-im/element-web#24944strictNullChecks
tosrc/hooks/*
vector-im/element-web#24945strictNullChecks
tosrc/utils/*!exportUtils
vector-im/element-web#24946strictNullChecks
tosrc/stores/room-list/*
vector-im/element-web#24948strictNullChecks
tosrc/components/views/settings/tabs/*
vector-im/element-web#25017strictNullChecks
tosrc/Markdown.ts
vector-im/element-web#25086strictNullChecks
tosrc/components/views/voip/*
vector-im/element-web#24943strictNullChecks
tosrc/LegacyCallHandler.tsx
vector-im/element-web#25087strictNullChecks
tosrc/MatrixClientPeg.ts
vector-im/element-web#25088strictNullChecks
tosrc/utils/local-room.ts
vector-im/element-web#25370strictNullChecks
tosrc/components/views/right_panel/*
vector-im/element-web#24752strictNullChecks
tosrc/stores/right-panel/*
vector-im/element-web#24947strictNullChecks
tosrc/components/views/spaces/*
vector-im/element-web#24942strictNullChecks
tosrc/components/structures/RoomView.tsx
vector-im/element-web#24838strictNullChecks
tosrc/Searching.ts
vector-im/element-web#25344strictNulllChecks
tosrc/components/views/rooms/*
vector-im/element-web#25345Have you considered any alternatives?
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: