diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2019-03-10 04:30:38 +1100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-09 12:30:38 -0500 |
commit | 034e2cc02829c9244b32232074c7a48af827a2fb (patch) | |
tree | bade01606a1ee076c1f753ce99c97ddb1e4edf30 /js/compiler_test.ts | |
parent | 8c7a12d1b258f0ef5ab27f49c424331d43e8d97f (diff) |
Migrate from tslint to eslint for linting (#1905)
Diffstat (limited to 'js/compiler_test.ts')
-rw-r--r-- | js/compiler_test.ts | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/js/compiler_test.ts b/js/compiler_test.ts index e8101995e..e3631641a 100644 --- a/js/compiler_test.ts +++ b/js/compiler_test.ts @@ -2,7 +2,8 @@ import { test, assert, assertEquals } from "./test_util.ts"; // We use a silly amount of `any` in these tests... -// tslint:disable:no-any + +/* eslint-disable @typescript-eslint/no-explicit-any */ const { Compiler, jsonEsmTemplate } = (Deno as any)._compiler; @@ -106,7 +107,6 @@ const modBModuleInfo = mockModuleInfo( undefined ); -// tslint:disable:max-line-length const fooBarTsOutput = `import * as deno from "deno"; console.log(deno); export const foo = "bar"; @@ -119,7 +119,6 @@ const loadConfigSource = `import * as config from "./config.json"; console.log(config.foo.baz); `; const configJsonSource = `{"foo":{"bar": true,"baz": ["qat", 1]}}`; -// tslint:enable:max-line-length const moduleMap: { [containFile: string]: { [moduleSpecifier: string]: ModuleInfo }; @@ -244,10 +243,6 @@ const moduleCache: { "/root/project/modB.ts": modBModuleInfo }; -const emittedFiles = { - "/root/project/foo/qat.ts": "console.log('foo');" -}; - let getEmitOutputStack: string[] = []; let logStack: any[][] = []; let codeCacheStack: Array<{ @@ -351,7 +346,7 @@ const mocks = { /** * Setup the mocks for a test */ -function setup() { +function setup(): void { // monkey patch mocks on instance Object.assign(compilerInstance, mocks); } @@ -359,7 +354,7 @@ function setup() { /** * Teardown the mocks for a test */ -function teardown() { +function teardown(): void { // reset compiler internal state (compilerInstance as any)._moduleMetaDataMap.clear(); (compilerInstance as any)._fileNamesMap.clear(); |