summaryrefslogtreecommitdiff
path: root/cli/js/compiler_util.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-02-26 07:33:19 +1100
committerGitHub <noreply@github.com>2020-02-25 15:33:19 -0500
commitbe787d09d537d6c1a6846168613dd0defe069448 (patch)
tree04686868e791e845e35da69f0db027ee14aa9811 /cli/js/compiler_util.ts
parentf47f3f96726a94dd2df5d68e3c786b5079089dd4 (diff)
upgrade: TypeScript 3.8 (#4100)
Diffstat (limited to 'cli/js/compiler_util.ts')
-rw-r--r--cli/js/compiler_util.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/cli/js/compiler_util.ts b/cli/js/compiler_util.ts
index 8a043d7d1..9dd245413 100644
--- a/cli/js/compiler_util.ts
+++ b/cli/js/compiler_util.ts
@@ -270,11 +270,16 @@ export function convertCompilerOptions(str: string): ts.CompilerOptions {
/** An array of TypeScript diagnostic types we ignore. */
export const ignoredDiagnostics = [
+ // TS2306: File 'file:///Users/rld/src/deno/cli/tests/subdir/amd_like.js' is
+ // not a module.
+ 2306,
+ // TS1375: 'await' expressions are only allowed at the top level of a file
+ // when that file is a module, but this file has no imports or exports.
+ // Consider adding an empty 'export {}' to make this file a module.
+ 1375,
// TS1103: 'for-await-of' statement is only allowed within an async function
// or async generator.
1103,
- // TS1308: 'await' expression is only allowed within an async function.
- 1308,
// TS2691: An import path cannot end with a '.ts' extension. Consider
// importing 'bad-module' instead.
2691,