From 0cdba0d76422f63473ccbbe6c8584d78e04c393d Mon Sep 17 00:00:00 2001 From: Arash Sheyda Date: Sun, 9 Jul 2023 14:27:10 +0300 Subject: [PATCH] chore: lint --- .eslintignore | 3 +++ client/composables/rpc.ts | 1 + package.json | 2 +- src/types/rpc.ts | 2 +- src/types/server-ctx.ts | 2 +- 5 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.eslintignore b/.eslintignore index de4d1f0..ad0c26c 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,2 +1,5 @@ dist node_modules +docs +.github +.vscode diff --git a/client/composables/rpc.ts b/client/composables/rpc.ts index b13209a..061e945 100644 --- a/client/composables/rpc.ts +++ b/client/composables/rpc.ts @@ -9,6 +9,7 @@ export const wsError = ref() export const wsConnectingDebounced = useDebounce(wsConnecting, 2000) const connectPromise = connectVite() +// eslint-disable-next-line @typescript-eslint/ban-types let onMessage: Function = () => {} export const clientFunctions = { diff --git a/package.json b/package.json index c8e4ab6..1fd4a8e 100644 --- a/package.json +++ b/package.json @@ -66,4 +66,4 @@ "splitpanes": "^3.1.5", "vitest": "^0.33.0" } -} \ No newline at end of file +} diff --git a/src/types/rpc.ts b/src/types/rpc.ts index 53e2874..14cd4e6 100644 --- a/src/types/rpc.ts +++ b/src/types/rpc.ts @@ -25,7 +25,7 @@ export interface ClientFunctions { export interface Collection { name: string - fields?: {}[] + fields?: object[] } export interface Resource { diff --git a/src/types/server-ctx.ts b/src/types/server-ctx.ts index d38fed1..7efd573 100644 --- a/src/types/server-ctx.ts +++ b/src/types/server-ctx.ts @@ -11,5 +11,5 @@ export interface NuxtDevtoolsServerContext { refresh: (event: keyof ServerFunctions) => void - extendServerRpc: (name: string, functions: ServerFunctions) => BirpcGroup + extendServerRpc: (name: string, functions: ServerFunctions) => BirpcGroup }