diff --git a/.eslintignore b/.eslintignore index c4aa1be52..2ecbfcdc0 100644 --- a/.eslintignore +++ b/.eslintignore @@ -161,7 +161,6 @@ src/Explorer/Tables/DataTable/DataTableBuilder.ts src/Explorer/Tables/DataTable/DataTableContextMenu.ts src/Explorer/Tables/DataTable/DataTableOperationManager.ts src/Explorer/Tables/DataTable/DataTableOperations.ts -src/Explorer/Tables/DataTable/DataTableUtilities.ts src/Explorer/Tables/DataTable/DataTableViewModel.ts src/Explorer/Tables/DataTable/TableCommands.ts src/Explorer/Tables/DataTable/TableEntityCache.ts diff --git a/src/Explorer/Tables/DataTable/DataTableUtilities.ts b/src/Explorer/Tables/DataTable/DataTableUtilities.ts index 403d45d90..206e3bcef 100644 --- a/src/Explorer/Tables/DataTable/DataTableUtilities.ts +++ b/src/Explorer/Tables/DataTable/DataTableUtilities.ts @@ -37,23 +37,6 @@ export function containItems(items: T[]): boolean { return items && items.length > 0; } -// export function setTargetIcon(idToIconHandlerMap: CloudHub.Common.IToolbarElementIdIconMap, $sourceElement: JQuery, toIconState: IconState): void { -// if (idToIconHandlerMap) { -// var iconId: string = $sourceElement.attr("id"); -// var iconHandler = idToIconHandlerMap[iconId]; -// switch (toIconState) { -// case IconState.default: -// iconHandler.observable(iconHandler.default); -// break; -// case IconState.hoverState: -// iconHandler.observable(iconHandler.hoverState); -// break; -// default: -// window.console.log("error"); -// } -// } -// } - export function addCssClass($sourceElement: JQuery, cssClassName: string): void { if (!$sourceElement.hasClass(cssClassName)) { $sourceElement.addClass(cssClassName); @@ -78,8 +61,9 @@ export function getPropertyIntersectionFromTableEntities( entities: Entities.ITableEntity[], isCassandraApi: boolean ): string[] { - var headerUnion: string[] = []; + const headerUnion: string[] = []; entities && + // eslint-disable-next-line @typescript-eslint/no-explicit-any entities.forEach((row: any) => { const keys = Object.keys(row); keys &&