1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 09:39:08 -05:00

feat(unstable): enable importsNotUsedAsValues by default (#7413)

This commit is contained in:
Luca Casonato 2020-09-11 16:22:10 +02:00 committed by GitHub
parent 0d1f626edd
commit fbb18d40d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -612,6 +612,7 @@ impl TsCompiler {
"inlineSourceMap": true,
// TODO(lucacasonato): enable this by default in 1.5.0
"isolatedModules": unstable,
"importsNotUsedAsValues": if unstable { "error" } else { "remove" },
"jsx": "react",
"lib": lib,
"module": "esnext",
@ -1248,6 +1249,7 @@ pub async fn runtime_compile(
"esModuleInterop": true,
// TODO(lucacasonato): enable this by default in 1.5.0
"isolatedModules": unstable,
"importsNotUsedAsValues": if unstable { "error" } else { "remove" },
"jsx": "react",
"module": "esnext",
"sourceMap": true,

View file

@ -1,5 +1,6 @@
{
"compilerOptions": {
"isolatedModules": true
"isolatedModules": true,
"importsNotUsedAsValues": "error"
}
}