From f6f787817bac5a2ebd43ca303c7673d5f905ffe6 Mon Sep 17 00:00:00 2001 From: sunilyadav840 Date: Tue, 9 Mar 2021 16:34:08 +0530 Subject: [PATCH] fix lint issue of cosmosclient and splitter --- .eslintignore | 5 ----- src/Common/CosmosClient.ts | 1 + src/Common/Splitter.ts | 6 +++--- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.eslintignore b/.eslintignore index 2ecbfcdc0..a6117bc81 100644 --- a/.eslintignore +++ b/.eslintignore @@ -5,12 +5,8 @@ src/Api/Apis.ts src/AuthType.ts src/Bindings/BindingHandlersRegisterer.ts src/Bindings/ReactBindingHandler.ts -src/Common/ArrayHashMap.ts src/Common/Constants.ts src/Common/CosmosClient.test.ts -src/Common/CosmosClient.ts -src/Common/DataAccessUtilityBase.test.ts -src/Common/DataAccessUtilityBase.ts src/Common/EditableUtility.ts src/Common/HashMap.test.ts src/Common/HashMap.ts @@ -25,7 +21,6 @@ src/Common/NotificationsClientBase.ts src/Common/ObjectCache.test.ts src/Common/ObjectCache.ts src/Common/QueriesClient.ts -src/Common/Splitter.ts src/Common/UrlUtility.ts src/Config.ts src/Contracts/ActionContracts.ts diff --git a/src/Common/CosmosClient.ts b/src/Common/CosmosClient.ts index 7c23b3388..40f49a026 100644 --- a/src/Common/CosmosClient.ts +++ b/src/Common/CosmosClient.ts @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/no-explicit-any */ import * as Cosmos from "@azure/cosmos"; import { RequestInfo, setAuthorizationTokenHeaderUsingMasterKey } from "@azure/cosmos"; import { configContext, Platform } from "../ConfigContext"; diff --git a/src/Common/Splitter.ts b/src/Common/Splitter.ts index 5785aa8ec..f16eaef94 100644 --- a/src/Common/Splitter.ts +++ b/src/Common/Splitter.ts @@ -42,7 +42,7 @@ export class Splitter { } public initialize() { - if (document.getElementById(this.splitterId) !== null && document.getElementById(this.leftSideId) != null) { + if (document.getElementById(this.splitterId) !== undefined && document.getElementById(this.leftSideId) !== undefined) { this.splitter = document.getElementById(this.splitterId); this.leftSide = document.getElementById(this.leftSideId); } @@ -73,7 +73,7 @@ export class Splitter { $(this.leftSide).resizable(splitterOptions); } - private onResizeStart: JQueryUI.ResizableEvent = (e: Event, ui: JQueryUI.ResizableUIParams) => { + private onResizeStart: JQueryUI.ResizableEvent = () => { if (this.direction === SplitterDirection.Vertical) { $(".ui-resizable-helper").height("100%"); } else { @@ -82,7 +82,7 @@ export class Splitter { $("iframe").css("pointer-events", "none"); }; - private onResizeStop: JQueryUI.ResizableEvent = (e: Event, ui: JQueryUI.ResizableUIParams) => { + private onResizeStop: JQueryUI.ResizableEvent = () => { $("iframe").css("pointer-events", "auto"); };