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
--warn x,y,z pulls all the "even stricter" flags under a single flag. Otherwise we'll end up with a million optional strictness flags that will drown out the other flags in documentation.
looking at --noFallthroughCasesInSwitch tells you what it does., but --suppressWarning 7029 is meaningless.
The other issue here is diluting the value proposition. the main value of typescript is to catch type errors. the tooling quality depends on some of these errors being addressed by the user. if we muffle some of these errors, the whole experience would degrade. On the other hand, what we provide is a set of known knobs to switch off certain groups of errors, that we have deemed as safe to ignore.
I do not think there is anything wrong with being prescriptive here. For documentation, we could split the help into main, and extended to make sure we are not drowning common flags in the --suppres* ones
Activity
sandersn commentedon Feb 1, 2016
:+!:
mhegazy commentedon Feb 1, 2016
why?
sandersn commentedon Feb 1, 2016
--warn x,y,z
pulls all the "even stricter" flags under a single flag. Otherwise we'll end up with a million optional strictness flags that will drown out the other flags in documentation.mhegazy commentedon Feb 1, 2016
looking at
--noFallthroughCasesInSwitch
tells you what it does., but--suppressWarning 7029
is meaningless.The other issue here is diluting the value proposition. the main value of typescript is to catch type errors. the tooling quality depends on some of these errors being addressed by the user. if we muffle some of these errors, the whole experience would degrade. On the other hand, what we provide is a set of known knobs to switch off certain groups of errors, that we have deemed as safe to ignore.
I do not think there is anything wrong with being prescriptive here. For documentation, we could split the help into main, and extended to make sure we are not drowning common flags in the
--suppres*
ones