From ab81648aca9ba9500efe86004b6afc79f6004e91 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sun, 7 Apr 2024 11:02:54 -0600 Subject: [PATCH] fix linting --- package.json | 3 ++- src/libs/util.ts | 13 ------------- src/util.d.ts | 1 + src/views/ContactsView.vue | 1 - 4 files changed, 3 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 41c66133e..f33d2c6cd 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "dev": "vite", "serve": "vite preview", "build": "vite build", - "lint": "eslint --ext .js,.ts,.vue --ignore-path .gitignore --fix src" + "lint": "eslint --ext .js,.ts,.vue --ignore-path .gitignore src", + "lint-fix": "eslint --ext .js,.ts,.vue --ignore-path .gitignore --fix src" }, "dependencies": { "@dicebear/collection": "^5.4.1", diff --git a/src/libs/util.ts b/src/libs/util.ts index 139cc64d5..10823174c 100644 --- a/src/libs/util.ts +++ b/src/libs/util.ts @@ -237,19 +237,6 @@ export const generateSaveAndActivateIdentity = async (): Promise => { return newId.did; }; -function getBase64(subscription: PushSubscription, key: PushEncryptionKeyName) { - const buffer = subscription.getKey(key); - if (!buffer) { - return null; - } - const value = Buffer.from(buffer); - return value - .toString("base64") - .replace(/\+/g, "-") - .replace(/\//g, "_") - .replace(/=+$/, ""); -} - export const sendTestThroughPushServer = async ( subscriptionJSON: PushSubscriptionJSON, skipFilter: boolean, diff --git a/src/util.d.ts b/src/util.d.ts index ec326706d..9a53a9d6b 100644 --- a/src/util.d.ts +++ b/src/util.d.ts @@ -1,4 +1,5 @@ // from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/util.d.ts +/* eslint-disable */ /** * The `node:util` module supports the needs of Node.js internal APIs. Many of the * utilities are useful for application and module developers as well. To access diff --git a/src/views/ContactsView.vue b/src/views/ContactsView.vue index f7391ec47..9d3dcbafc 100644 --- a/src/views/ContactsView.vue +++ b/src/views/ContactsView.vue @@ -316,7 +316,6 @@ import { Account } from "@/db/tables/accounts"; import { Buffer } from "buffer/"; - @Component({ components: { QuickNav, EntityIcon }, })