From 06f22f83c6badd0e005ff3ce8b8abf690cc7ae33 Mon Sep 17 00:00:00 2001 From: Alexander T Date: Wed, 4 Sep 2019 11:51:17 +0300 Subject: [PATCH] fix eslint errors --- src/compiler/commandLineParser.ts | 2 +- src/compiler/visitor.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 7cdd8bd8c8a..009c04fbb8c 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -903,7 +903,7 @@ namespace ts { !!option.affectsSourceFile || !!option.affectsModuleResolution || !!option.affectsBindDiagnostics); /* @internal */ - export const transpileOptionValueCompilerOptions: ReadonlyArray = optionDeclarations.filter(option => + export const transpileOptionValueCompilerOptions: readonly CommandLineOption[] = optionDeclarations.filter(option => hasProperty(option, "transpileOptionValue")); /* @internal */ diff --git a/src/compiler/visitor.ts b/src/compiler/visitor.ts index 2a2911001db..8b7805e6905 100644 --- a/src/compiler/visitor.ts +++ b/src/compiler/visitor.ts @@ -141,7 +141,7 @@ namespace ts { export function visitLexicalEnvironment(statements: NodeArray, visitor: Visitor, context: TransformationContext, start?: number, ensureUseStrict?: boolean) { context.startLexicalEnvironment(); statements = visitNodes(statements, visitor, isStatement, start); - if (ensureUseStrict) statements = ts.ensureUseStrict(statements); // tslint:disable-line no-unnecessary-qualifier + if (ensureUseStrict) statements = ts.ensureUseStrict(statements); // eslint-disable-line @typescript-eslint/no-unnecessary-qualifier return mergeLexicalEnvironment(statements, context.endLexicalEnvironment()); }