diff options
-rw-r--r-- | js/compiler.ts | 1 | ||||
-rw-r--r-- | tests/error_008_checkjs.js | 6 | ||||
-rw-r--r-- | tests/error_008_checkjs.js.out | 10 | ||||
-rw-r--r-- | tsconfig.json | 2 | ||||
-rw-r--r-- | website/app.js | 4 |
5 files changed, 0 insertions, 23 deletions
diff --git a/js/compiler.ts b/js/compiler.ts index bac328937..c872afa14 100644 --- a/js/compiler.ts +++ b/js/compiler.ts @@ -152,7 +152,6 @@ export class DenoCompiler // arguments private readonly _options: Readonly<ts.CompilerOptions> = { allowJs: true, - checkJs: true, module: ts.ModuleKind.AMD, outDir: "$deno$", // TODO https://github.com/denoland/deno/issues/23 diff --git a/tests/error_008_checkjs.js b/tests/error_008_checkjs.js deleted file mode 100644 index 08d4873c7..000000000 --- a/tests/error_008_checkjs.js +++ /dev/null @@ -1,6 +0,0 @@ -// console.log intentionally misspelled to trigger a type error -consol.log("hello world!"); - -// the following error should be ignored and not output to the console -// @ts-ignore -const foo = new Foo(); diff --git a/tests/error_008_checkjs.js.out b/tests/error_008_checkjs.js.out deleted file mode 100644 index 9220efaf1..000000000 --- a/tests/error_008_checkjs.js.out +++ /dev/null @@ -1,10 +0,0 @@ -[96m[WILDCARD]/tests/error_008_checkjs.js[WILDCARD] - [91merror[0m[90m TS2552: [0mCannot find name 'consol'. Did you mean 'console'? - -[WILDCARD] consol.log("hello world!"); -[WILDCARD]~~~~~~[0m - - [96m$asset$/lib.deno_runtime.d.ts[WILDCARD] -[WILDCARD]declare const console: console_.Console; -[WILDCARD]~~~~~~~[0m -[WILDCARD]'console' is declared here. - diff --git a/tsconfig.json b/tsconfig.json index 806143644..e6bf1688b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,9 +1,7 @@ { "compilerOptions": { - "allowJs": true, "allowUnreachableCode": false, "baseUrl": ".", - "checkJs": true, "module": "esnext", "moduleResolution": "node", "noImplicitReturns": true, diff --git a/website/app.js b/website/app.js index 74d97b41c..b0ac3482b 100644 --- a/website/app.js +++ b/website/app.js @@ -154,12 +154,10 @@ function gen2( }; } - // @ts-ignore c3.generate({ bindto: id, size: { height: 300, - // @ts-ignore width: window.chartWidth || 375 // TODO: do not use global variable }, data: { @@ -203,7 +201,6 @@ export async function drawChartsFromBenchmarkData(dataUrl) { const sha1ShortList = sha1List.map(sha1 => sha1.substring(0, 6)); const viewCommitOnClick = _sha1List => d => { - // @ts-ignore window.open( `https://github.com/denoland/deno/commit/${_sha1List[d["index"]]}` ); @@ -233,7 +230,6 @@ export async function drawChartsFromBenchmarkData(dataUrl) { */ export async function drawChartsFromTravisData() { const viewPullRequestOnClick = _prNumberList => d => { - // @ts-ignore window.open( `https://github.com/denoland/deno/pull/${_prNumberList[d["index"]]}` ); |