Fix issues with JavaScript importing JavaScript. (#4120)

Fixes #3852
Fixes #4117
This commit is contained in:
Kitson Kelly 2020-02-25 19:32:43 +11:00 committed by GitHub
parent 22f88b9f37
commit 805992b14a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 20 additions and 5 deletions

View file

@ -304,7 +304,11 @@ export const ignoredDiagnostics = [
// support JSON imports. Allegedly this was fixed in
// Microsoft/TypeScript#26825 but that doesn't seem to be working here,
// so we will ignore complaints about this compiler setting.
5070
5070,
// TS7016: Could not find a declaration file for module '...'. '...'
// implicitly has an 'any' type. This is due to `allowJs` being off by
// default but importing of a JavaScript module.
7016
];
/** When doing a host configuration, processing the response and logging out