Skip to content

Commit

Permalink
feat(unstable): enable importsNotUsedAsValues by default (denoland#7413)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Sep 11, 2020
1 parent 0d1f626 commit fbb18d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cli/tsc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion std/tsconfig_test.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"isolatedModules": true
"isolatedModules": true,
"importsNotUsedAsValues": "error"
}
}

0 comments on commit fbb18d4

Please sign in to comment.