From b241771e695f364730d1943d10cc76de865fd0ea Mon Sep 17 00:00:00 2001 From: Sunil Kumar Yadav <79906609+sunilyadav840@users.noreply.github.com> Date: Tue, 9 Mar 2021 23:57:24 +0530 Subject: [PATCH] fixed eslint of IteratorUtility (#469) --- .eslintignore | 2 -- src/Common/IteratorUtilities.ts | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.eslintignore b/.eslintignore index 1b7850a18..b717fcfc7 100644 --- a/.eslintignore +++ b/.eslintignore @@ -14,8 +14,6 @@ src/Common/DataAccessUtilityBase.ts src/Common/EditableUtility.ts src/Common/HashMap.test.ts src/Common/HashMap.ts -src/Common/IteratorUtilities.test.ts -src/Common/IteratorUtilities.ts src/Common/Logger.test.ts src/Common/MessageHandler.test.ts src/Common/MessageHandler.ts diff --git a/src/Common/IteratorUtilities.ts b/src/Common/IteratorUtilities.ts index 62249c1ed..f85ad7fb2 100644 --- a/src/Common/IteratorUtilities.ts +++ b/src/Common/IteratorUtilities.ts @@ -1,6 +1,8 @@ import { QueryResults } from "../Contracts/ViewModels"; interface QueryResponse { + // [Todo] remove any + // eslint-disable-next-line @typescript-eslint/no-explicit-any resources: any[]; hasMoreResults: boolean; activityId: string; @@ -16,6 +18,7 @@ export interface MinimalQueryIterator { export function nextPage(documentsIterator: MinimalQueryIterator, firstItemIndex: number): Promise { return documentsIterator.fetchNext().then((response) => { const documents = response.resources; + // eslint-disable-next-line @typescript-eslint/no-explicit-any const headers = (response as any).headers || {}; // TODO this is a private key. Remove any const itemCount = (documents && documents.length) || 0; return {