From d0970daacda0b6f6c2077c2f81948536b574bbe9 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 12 Jun 2020 09:19:29 -0400 Subject: make std deno-lint clean (#6240) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- std/encoding/_yaml/loader/loader.ts | 2 +- std/encoding/_yaml/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'std/encoding') diff --git a/std/encoding/_yaml/loader/loader.ts b/std/encoding/_yaml/loader/loader.ts index f0d535624..39954c280 100644 --- a/std/encoding/_yaml/loader/loader.ts +++ b/std/encoding/_yaml/loader/loader.ts @@ -1417,7 +1417,7 @@ function readAlias(state: LoaderState): boolean { const alias = state.input.slice(_position, state.position); if ( typeof state.anchorMap !== "undefined" && - !state.anchorMap.hasOwnProperty(alias) + !Object.prototype.hasOwnProperty.call(state.anchorMap, alias) ) { return throwError(state, `unidentified alias "${alias}"`); } diff --git a/std/encoding/_yaml/utils.ts b/std/encoding/_yaml/utils.ts index 4630a45a2..e009ae3cf 100644 --- a/std/encoding/_yaml/utils.ts +++ b/std/encoding/_yaml/utils.ts @@ -3,7 +3,7 @@ // Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -/* eslint-disable-next-line @typescript-eslint/no-explicit-any */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any export type Any = any; export function isNothing(subject: unknown): subject is never { -- cgit v1.2.3