TryQuiet / quiet

A private, p2p alternative to Slack and Discord built on Tor & IPFS
https://www.tryquiet.org
GNU General Public License v3.0
1.94k stars 85 forks source link

Suggestion: Increase usefulness of typescript by making it stricter #2520

Open Simon-Laux opened 4 months ago

Simon-Laux commented 4 months ago

Basically enable these two compiler options in tsconfig.json:

"noImplicitAny": true,
"strictNullChecks": true,

The first one nudges you to provide more typing information and the second one makes null and undefined cases that you need to care for while coding. The strictNullChecks option already prevented many bugs in my coding "career".