You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Searching for this, it seems that there was a PR to address some strict mode issues blitz-js/blitz#970 but I don't see one where we turn it on by default.
The text was updated successfully, but these errors were encountered:
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.)
flybayer
changed the title
Use strict TypeScript option
Use strict TypeScript option for new apps
Dec 10, 2020
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 blitz-js/blitz#970 but I don't see one where we turn it on by default.
The text was updated successfully, but these errors were encountered: