Skip to content

Commit 73d9e4e

Browse files
tniezgtniezg
and
tniezg
authored
Set TypeScripts's importsNotUsedAsValues to preserve (#182)
* Set TypeScripts's importsNotUsedAsValues to preserve * Ignore .d.ts imports in spec Co-authored-by: tniezg <[email protected]>
1 parent 3237c9d commit 73d9e4e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"strict": true,
55
"lib": [ "es6", "dom", "scripthost" ],
66
"moduleResolution" : "node",
7-
"types": ["cypress"]
7+
"types": ["cypress"],
8+
"importsNotUsedAsValues": "remove"
89
},
910
"include" : [
1011
"e2e/**/*.ts"

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"module": "commonjs",
88
"esModuleInterop": true,
99
"declaration": true,
10-
"declarationDir": "./types"
10+
"declarationDir": "./types",
11+
"importsNotUsedAsValues": "preserve"
1112
}
1213
}

0 commit comments

Comments
 (0)