Can I set "strict mode" for js as a global parameter
<p>I have a typescript project that is using Mocha to generate coverage. I would like to convert the coverage back to the typescript files using <code>remap-istanbul</code>, however I keep on getting this error when I try to run remap-istanbul on my coverage:</p>

<pre><code>SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
</code></pre>

<p>I've googled the issue and the two options I've found are either changing the compliation to "ES5" rather than "ES6" (which I cannot do as my tests will fail if I change it to ES5) or adding <code>"use strict";</code> inside the block of code (which I cannot do because it is not my project).</p>

<p>Are there any other ways of getting around this issue?</p>