From 6f249e8b67cfa0e2e2aea46424dea8be4ec7a3e9 Mon Sep 17 00:00:00 2001 From: Flawid DSouza Date: Wed, 13 Mar 2024 22:32:54 +0530 Subject: [PATCH] style(ui): npm run lint-fix --- packages/ui/package.json | 1 - packages/ui/src/db.ts | 4 ++-- packages/ui/src/helpers.ts | 2 -- packages/ui/src/utils/array.ts | 1 - 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/ui/package.json b/packages/ui/package.json index 5431476a..ecb405be 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,7 +1,6 @@ { "name": "restfox-ui", "version": "0.0.0", - "type": "module", "scripts": { "dev": "vite", "dev-desktop-electron": "vite --mode desktop-electron", diff --git a/packages/ui/src/db.ts b/packages/ui/src/db.ts index a0954a2c..04a8f234 100644 --- a/packages/ui/src/db.ts +++ b/packages/ui/src/db.ts @@ -73,7 +73,7 @@ export async function getCollectionForWorkspace(workspaceId, type = null) { } } - let where: any = { + const where: any = { workspaceId } @@ -81,7 +81,7 @@ export async function getCollectionForWorkspace(workspaceId, type = null) { where._type = type } - // @ts-ignore toArray does work on where, not sure why typescript is complaining + // @ts-expect-error toArray does work on where, not sure why typescript is complaining return db.collections.where(where).toArray() } diff --git a/packages/ui/src/helpers.ts b/packages/ui/src/helpers.ts index 65df46a2..ddca7422 100644 --- a/packages/ui/src/helpers.ts +++ b/packages/ui/src/helpers.ts @@ -1,5 +1,3 @@ -// @ts-nocheck - import JSZip from 'jszip' import { nanoid } from 'nanoid' import { createRequestContextForPlugin, createResponseContextForPlugin, usePlugin } from './plugin' diff --git a/packages/ui/src/utils/array.ts b/packages/ui/src/utils/array.ts index 3f695dcf..267fc02d 100644 --- a/packages/ui/src/utils/array.ts +++ b/packages/ui/src/utils/array.ts @@ -24,7 +24,6 @@ export function mergeArraysByProperty(arr1: object[], arr2: object[], property: }) // Populate the merged array with the values from the lookup map - // @ts-expect-error lookup.forEach(value => merged.push(value)) return merged