diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-02-26 07:33:19 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 15:33:19 -0500 |
commit | be787d09d537d6c1a6846168613dd0defe069448 (patch) | |
tree | 04686868e791e845e35da69f0db027ee14aa9811 /cli/js/compiler_util.ts | |
parent | f47f3f96726a94dd2df5d68e3c786b5079089dd4 (diff) |
upgrade: TypeScript 3.8 (#4100)
Diffstat (limited to 'cli/js/compiler_util.ts')
-rw-r--r-- | cli/js/compiler_util.ts | 9 |
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, |