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
When I try to work on a JS file that has a "const length = 100" line at the top with "js/ts.implicitProjectConfig.checkJs": true, I get an ugly "Cannot redeclare block-scoped variable length" error because it conflicts with some lib.dom.ts file... but that's in fact not a concern at all:
I think something like this would probably pose a significant barrier to folks trying to get started with checkJS.
The text was updated successfully, but these errors were encountered:
The problem here is that if you downlevel this code to var, it starts misbehaving again, and we don't know whether or not you're doing that. Beside that, we could add some logic here to separate the "global scope that's actually global" and the "global scope that is shadowable with a block-scope let/const" but to be honest this really doesn't seem to come up much.
When I try to work on a JS file that has a "const length = 100" line at the top with

"js/ts.implicitProjectConfig.checkJs": true
, I get an ugly"Cannot redeclare block-scoped variable length"
error because it conflicts with some lib.dom.ts file... but that's in fact not a concern at all:I think something like this would probably pose a significant barrier to folks trying to get started with checkJS.
The text was updated successfully, but these errors were encountered: