mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -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
|
||||
private readonly _options: Readonly<ts.CompilerOptions> = {
|
||||
allowJs: true,
|
||||
checkJs: true,
|
||||
module: ts.ModuleKind.AMD,
|
||||
outDir: "$deno$",
|
||||
// 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": {
|
||||
"allowJs": true,
|
||||
"allowUnreachableCode": false,
|
||||
"baseUrl": ".",
|
||||
"checkJs": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"noImplicitReturns": true,
|
||||
|
|
|
@ -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"]]}`
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue