mirror of
https://github.com/denoland/deno.git
synced 2025-01-08 15:19:40 -05:00
Revert "Support CheckJS"
Broken in master.
This reverts commit dd230d520b
.
This commit is contained in:
parent
dd230d520b
commit
5cf37c2f20
5 changed files with 0 additions and 23 deletions
|
@ -152,7 +152,6 @@ export class DenoCompiler
|
||||||
// arguments
|
// arguments
|
||||||
private readonly _options: Readonly<ts.CompilerOptions> = {
|
private readonly _options: Readonly<ts.CompilerOptions> = {
|
||||||
allowJs: true,
|
allowJs: true,
|
||||||
checkJs: true,
|
|
||||||
module: ts.ModuleKind.AMD,
|
module: ts.ModuleKind.AMD,
|
||||||
outDir: "$deno$",
|
outDir: "$deno$",
|
||||||
// TODO https://github.com/denoland/deno/issues/23
|
// TODO https://github.com/denoland/deno/issues/23
|
||||||
|
|
|
@ -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();
|
|
|
@ -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.
|
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"allowJs": true,
|
|
||||||
"allowUnreachableCode": false,
|
"allowUnreachableCode": false,
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"checkJs": true,
|
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"noImplicitReturns": true,
|
"noImplicitReturns": true,
|
||||||
|
|
|
@ -154,12 +154,10 @@ function gen2(
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// @ts-ignore
|
|
||||||
c3.generate({
|
c3.generate({
|
||||||
bindto: id,
|
bindto: id,
|
||||||
size: {
|
size: {
|
||||||
height: 300,
|
height: 300,
|
||||||
// @ts-ignore
|
|
||||||
width: window.chartWidth || 375 // TODO: do not use global variable
|
width: window.chartWidth || 375 // TODO: do not use global variable
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
|
@ -203,7 +201,6 @@ export async function drawChartsFromBenchmarkData(dataUrl) {
|
||||||
const sha1ShortList = sha1List.map(sha1 => sha1.substring(0, 6));
|
const sha1ShortList = sha1List.map(sha1 => sha1.substring(0, 6));
|
||||||
|
|
||||||
const viewCommitOnClick = _sha1List => d => {
|
const viewCommitOnClick = _sha1List => d => {
|
||||||
// @ts-ignore
|
|
||||||
window.open(
|
window.open(
|
||||||
`https://github.com/denoland/deno/commit/${_sha1List[d["index"]]}`
|
`https://github.com/denoland/deno/commit/${_sha1List[d["index"]]}`
|
||||||
);
|
);
|
||||||
|
@ -233,7 +230,6 @@ export async function drawChartsFromBenchmarkData(dataUrl) {
|
||||||
*/
|
*/
|
||||||
export async function drawChartsFromTravisData() {
|
export async function drawChartsFromTravisData() {
|
||||||
const viewPullRequestOnClick = _prNumberList => d => {
|
const viewPullRequestOnClick = _prNumberList => d => {
|
||||||
// @ts-ignore
|
|
||||||
window.open(
|
window.open(
|
||||||
`https://github.com/denoland/deno/pull/${_prNumberList[d["index"]]}`
|
`https://github.com/denoland/deno/pull/${_prNumberList[d["index"]]}`
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue