Skip to content

Commit

Permalink
style(ui): npm run lint-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
flawiddsouza committed Mar 13, 2024
1 parent 294bcf9 commit 6f249e8
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "restfox-ui",
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"dev-desktop-electron": "vite --mode desktop-electron",
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ export async function getCollectionForWorkspace(workspaceId, type = null) {
}
}

let where: any = {
const where: any = {
workspaceId
}

if(type) {
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()
}

Expand Down
2 changes: 0 additions & 2 deletions packages/ui/src/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// @ts-nocheck

import JSZip from 'jszip'
import { nanoid } from 'nanoid'
import { createRequestContextForPlugin, createResponseContextForPlugin, usePlugin } from './plugin'
Expand Down
1 change: 0 additions & 1 deletion packages/ui/src/utils/array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6f249e8

Please sign in to comment.