From 8e914be7420715620cad74fbb020c5e87ac875a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 3 Nov 2020 16:19:29 +0100 Subject: build: migrate to dlint (#8176) This commit migrates repository from using "eslint" to "dlint" for linting JavaScript code. --- cli/tsc/99_main_compiler.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cli/tsc') diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js index 33f34b806..5ef9bca65 100644 --- a/cli/tsc/99_main_compiler.js +++ b/cli/tsc/99_main_compiler.js @@ -1,5 +1,7 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. +// deno-lint-ignore-file no-undef + // This module is the entry point for "compiler" isolate, ie. the one // that is created when Deno needs to type check TypeScript, and in some // instances convert TypeScript to JavaScript. @@ -234,7 +236,7 @@ delete Object.prototype.__proto__; specifiers, base, }); - let r = resolved.map(([resolvedFileName, extension]) => ({ + const r = resolved.map(([resolvedFileName, extension]) => ({ resolvedFileName, extension, isExternalLibraryImport: false, @@ -357,7 +359,7 @@ delete Object.prototype.__proto__; /** @type {{ buildSpecifier: string; libs: string[] }} */ const { buildSpecifier, libs } = core.jsonOpSync("op_build_info", {}); for (const lib of libs) { - let specifier = `lib.${lib}.d.ts`; + const specifier = `lib.${lib}.d.ts`; // we are using internal APIs here to "inject" our custom libraries into // tsc, so things like `"lib": [ "deno.ns" ]` are supported. if (!ts.libs.includes(lib)) { -- cgit v1.2.3