1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00

Revert "Support CheckJS"

Broken in master.

This reverts commit dd230d520b.
This commit is contained in:
Ryan Dahl 2018-10-23 09:54:52 -04:00
parent dd230d520b
commit 5cf37c2f20
5 changed files with 0 additions and 23 deletions

View file

@ -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

View file

@ -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();

View file

@ -1,10 +0,0 @@
[WILDCARD]/tests/error_008_checkjs.jsILDCARD] - error TS2552: Cannot find name 'consol'. Did you mean 'console'?
ILDCARD] consol.log("hello world!");
[WILDCARD]~~~~~~
$asset$/lib.deno_runtime.d.tsILDCARD]
[WILDCARD]declare const console: console_.Console;
[WILDCARD]~~~~~~~
[WILDCARD]'console' is declared here.

View file

@ -1,9 +1,7 @@
{
"compilerOptions": {
"allowJs": true,
"allowUnreachableCode": false,
"baseUrl": ".",
"checkJs": true,
"module": "esnext",
"moduleResolution": "node",
"noImplicitReturns": true,

View file

@ -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"]]}`
);