Improved TSConfigs in examples (#6396)
### Description
Updated the tsconfig.json file in the basic example to reflect modern
practices.
NOTE: this needs to be copied to all the other examples. Wasn't sure if
there was some clever automation here, and couldn't quite be arsed to do
it myself.
Reasoning behind changes explained here:
https://www.totaltypescript.com/tsconfig-cheat-sheet
I also deleted a lot of values which are default.
---------
Co-authored-by: Anthony Shew <anthony.shew@vercel.com>
Co-authored-by: Anthony Shew <anthonyshew@gmail.com>