diff --git a/eslint.config.js b/eslint.config.js index b8271b43..0e8a1c15 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -47,7 +47,7 @@ export default [ "@typescript-eslint/ban-ts-comment": "off", "@typescript-eslint/no-unused-vars": [ "error", - {args: "none", destructuredArrayIgnorePattern: "^_d?$"}, + {args: "none", destructuredArrayIgnorePattern: "^_d?$", caughtErrors: "none"}, ], }, }, diff --git a/src/app/base.ts b/src/app/base.ts index c033ea48..944076c6 100644 --- a/src/app/base.ts +++ b/src/app/base.ts @@ -1,10 +1,9 @@ -import {derived, writable} from "svelte/store" +import {derived} from "svelte/store" import {memoize, assoc} from "@welshman/lib" import type {CustomEvent} from "@welshman/util" import {Repository, createEvent, Relay} from "@welshman/util" import {withGetter} from "@welshman/store" import {NetworkContext, Tracker} from "@welshman/net" -import type {ISigner} from "@welshman/signer" import {Nip46Broker, Nip46Signer, Nip07Signer, Nip01Signer} from "@welshman/signer" import {synced} from "@lib/util" import type {Session} from "@app/types" diff --git a/src/app/commands.ts b/src/app/commands.ts index 5cc5f083..94cf1676 100644 --- a/src/app/commands.ts +++ b/src/app/commands.ts @@ -1,17 +1,7 @@ -import {goto} from "$app/navigation" -import {append, uniqBy, now} from "@welshman/lib" +import {uniqBy, now} from "@welshman/lib" import {GROUPS, asDecryptedEvent, readList, editList, makeList, createList} from "@welshman/util" -import {pushToast} from "@app/toast" import {pk, signer, repository, INDEXER_RELAYS} from "@app/base" -import { - splitGroupId, - loadRelay, - loadGroup, - getWriteRelayUrls, - loadRelaySelections, - publish, - ensurePlaintext, -} from "@app/state" +import {getWriteRelayUrls, loadRelaySelections, publish, ensurePlaintext} from "@app/state" export type ModifyTags = (tags: string[][]) => string[][] diff --git a/src/app/components/GroupNote.svelte b/src/app/components/GroupNote.svelte index 1ea88ab4..00155aad 100644 --- a/src/app/components/GroupNote.svelte +++ b/src/app/components/GroupNote.svelte @@ -5,7 +5,6 @@ import {fly} from "@lib/transition" import Icon from "@lib/components/Icon.svelte" import Avatar from "@lib/components/Avatar.svelte" - import {repository} from "@app/base" import {deriveProfile, deriveEvent} from "@app/state" export let event: CustomEvent diff --git a/src/app/components/InfoNostr.svelte b/src/app/components/InfoNostr.svelte index 2c8c1ac2..74b66ca3 100644 --- a/src/app/components/InfoNostr.svelte +++ b/src/app/components/InfoNostr.svelte @@ -1,8 +1,6 @@
diff --git a/src/app/components/LogIn.svelte b/src/app/components/LogIn.svelte index aa7b153a..14babd58 100644 --- a/src/app/components/LogIn.svelte +++ b/src/app/components/LogIn.svelte @@ -1,11 +1,9 @@