mirror of
https://github.com/denoland/deno.git
synced 2025-07-23 05:05:08 +00:00
Turn on TS strict mode for deno_typescript (#3330)
This commit is contained in:
parent
8b90b8e883
commit
4902a1cacb
9 changed files with 27 additions and 9 deletions
|
@ -285,7 +285,7 @@ async function processImports(
|
|||
referrer = ""
|
||||
): Promise<SourceFileJson[]> {
|
||||
if (!specifiers.length) {
|
||||
return;
|
||||
return [];
|
||||
}
|
||||
const sources = specifiers.map(([, moduleSpecifier]) => moduleSpecifier);
|
||||
const sourceFiles = await fetchSourceFiles(sources, referrer);
|
||||
|
@ -385,6 +385,8 @@ class Host implements ts.CompilerHost {
|
|||
private readonly _options: ts.CompilerOptions = {
|
||||
allowJs: true,
|
||||
allowNonTsExtensions: true,
|
||||
// TODO(#3324) Enable strict mode for user code.
|
||||
// strict: true,
|
||||
checkJs: false,
|
||||
esModuleInterop: true,
|
||||
module: ts.ModuleKind.ESNext,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue