Open alexturpin opened 3 years ago
Hey Alex, thank you for the suggestion. While this is something we can consider a bit down the road (I always use strict mode personally), for now we'll leave it out because we don't have full JS support yet and strict mode is extra difficult for people new to TS (currently lots are using TS for the first time with Blitz.)
Thanks Brandon, appreciate the answer, totally get it.
What do you want and why?
We should turn on the tsconfig
strict
mode by default.strict
mode allows the static type checker to catch even more potential problems!Possible implementation(s)
Set
strict
totrue
in https://github.com/blitz-js/blitz/blob/canary/packages/generator/templates/app/tsconfig.jsonAdditional context
Searching for this, it seems that there was a PR to address some strict mode issues https://github.com/blitz-js/blitz/pull/970 but I don't see one where we turn it on by default.