From 50f8020522652ed2ee35c6c5178fec42a19671e2 Mon Sep 17 00:00:00 2001 From: Florent Benoit Date: Thu, 29 Aug 2024 09:56:59 +0200 Subject: [PATCH] chore: fix import rules of linter Signed-off-by: Florent Benoit --- eslint.config.mjs | 3 --- packages/backend/package.json | 1 + packages/frontend/src/lib/ApplicationActions.svelte | 1 + packages/frontend/src/lib/Card.svelte | 1 + packages/frontend/src/lib/button/ListItemButtonIcon.svelte | 1 + .../frontend/src/lib/conversation/ConversationActions.svelte | 1 + packages/frontend/src/lib/markdown/MarkdownRenderer.svelte | 1 + .../src/lib/table/application/ApplicationTable.svelte | 1 + .../frontend/src/lib/table/application/ColumnActions.svelte | 1 + .../frontend/src/lib/table/application/ColumnStatus.svelte | 1 + .../frontend/src/lib/table/model/ModelColumnActions.svelte | 1 + packages/frontend/src/lib/table/model/ModelColumnAge.svelte | 1 + .../frontend/src/lib/table/model/ModelColumnLabels.svelte | 1 + packages/frontend/src/lib/table/model/ModelColumnName.svelte | 1 + packages/frontend/src/lib/table/model/ModelColumnSize.svelte | 1 + .../src/lib/table/playground/ConversationColumnAction.svelte | 1 + .../src/lib/table/playground/PlaygroundColumnModel.svelte | 1 + .../src/lib/table/playground/PlaygroundColumnName.svelte | 1 + packages/frontend/src/lib/table/service/ServiceAction.svelte | 1 + .../src/lib/table/service/ServiceColumnModelName.svelte | 1 + .../frontend/src/lib/table/service/ServiceColumnName.svelte | 1 + packages/frontend/src/lib/table/service/ServiceStatus.svelte | 1 + packages/frontend/src/utils/categoriesUtils.ts | 1 + packages/shared/src/models/IRecipe.ts | 4 ++-- 24 files changed, 24 insertions(+), 5 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index cd2216209..82968595f 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -209,10 +209,7 @@ export default [ '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/prefer-nullish-coalescing': 'off', '@typescript-eslint/no-empty-object-type': 'off', - 'import/newline-after-import': 'off', 'svelte/valid-compile': 'off', - 'import/no-extraneous-dependencies': 'off', - 'import/first': 'off', 'no-undef': 'off', }, }, diff --git a/packages/backend/package.json b/packages/backend/package.json index ad5148835..7b163ad77 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -74,6 +74,7 @@ "express": "^4.19.2", "express-openapi-validator": "^5.3.3", "isomorphic-git": "^1.27.1", + "js-yaml": "^4.1.0", "mustache": "^4.2.0", "openai": "^4.56.1", "postman-code-generators": "^1.12.0", diff --git a/packages/frontend/src/lib/ApplicationActions.svelte b/packages/frontend/src/lib/ApplicationActions.svelte index 038a7c7b9..ba69b96a9 100644 --- a/packages/frontend/src/lib/ApplicationActions.svelte +++ b/packages/frontend/src/lib/ApplicationActions.svelte @@ -13,6 +13,7 @@ import type { ApplicationState } from '@shared/src/models/IApplicationState'; import { router } from 'tinro'; import { DropdownMenu } from '@podman-desktop/ui-svelte'; import FlatMenu from './FlatMenu.svelte'; + export let object: ApplicationState | undefined; export let recipeId: string; export let modelId: string; diff --git a/packages/frontend/src/lib/Card.svelte b/packages/frontend/src/lib/Card.svelte index 1e16a8b5e..ec2a2909c 100644 --- a/packages/frontend/src/lib/Card.svelte +++ b/packages/frontend/src/lib/Card.svelte @@ -2,6 +2,7 @@ import Fa from 'svelte-fa'; import type { IconDefinition } from '@fortawesome/free-regular-svg-icons'; import { createEventDispatcher } from 'svelte'; + const dispatch = createEventDispatcher(); export let title: string | undefined = undefined; diff --git a/packages/frontend/src/lib/button/ListItemButtonIcon.svelte b/packages/frontend/src/lib/button/ListItemButtonIcon.svelte index 590ff798c..5a976167f 100644 --- a/packages/frontend/src/lib/button/ListItemButtonIcon.svelte +++ b/packages/frontend/src/lib/button/ListItemButtonIcon.svelte @@ -2,6 +2,7 @@ import type { IconDefinition } from '@fortawesome/free-solid-svg-icons'; import Fa from 'svelte-fa'; import { DropdownMenu } from '@podman-desktop/ui-svelte'; + export let title: string; export let icon: IconDefinition; export let hidden = false; diff --git a/packages/frontend/src/lib/conversation/ConversationActions.svelte b/packages/frontend/src/lib/conversation/ConversationActions.svelte index bb93ea709..36c88f555 100644 --- a/packages/frontend/src/lib/conversation/ConversationActions.svelte +++ b/packages/frontend/src/lib/conversation/ConversationActions.svelte @@ -3,6 +3,7 @@ import { studioClient } from '/@/utils/client'; import { faTrash } from '@fortawesome/free-solid-svg-icons'; import ListItemButtonIcon from '/@/lib/button/ListItemButtonIcon.svelte'; import type { Conversation } from '@shared/src/models/IPlaygroundMessage'; + export let conversation: Conversation; export let detailed: boolean = false; diff --git a/packages/frontend/src/lib/markdown/MarkdownRenderer.svelte b/packages/frontend/src/lib/markdown/MarkdownRenderer.svelte index f1a6464c2..f2d632e3e 100644 --- a/packages/frontend/src/lib/markdown/MarkdownRenderer.svelte +++ b/packages/frontend/src/lib/markdown/MarkdownRenderer.svelte @@ -1,6 +1,7 @@ diff --git a/packages/frontend/src/lib/table/application/ApplicationTable.svelte b/packages/frontend/src/lib/table/application/ApplicationTable.svelte index 191ded52b..7ae1eadf0 100644 --- a/packages/frontend/src/lib/table/application/ApplicationTable.svelte +++ b/packages/frontend/src/lib/table/application/ApplicationTable.svelte @@ -9,6 +9,7 @@ import ColumnAge from './ColumnAge.svelte'; import { onMount } from 'svelte'; import type { ApplicationState } from '@shared/src/models/IApplicationState'; import { Table, TableColumn, TableRow } from '@podman-desktop/ui-svelte'; + export let filter: ((items: ApplicationState[]) => ApplicationState[]) | undefined = undefined; const columns: TableColumn[] = [ new TableColumn('Status', { width: '70px', align: 'center', renderer: ColumnStatus }), diff --git a/packages/frontend/src/lib/table/application/ColumnActions.svelte b/packages/frontend/src/lib/table/application/ColumnActions.svelte index 702f4ada5..6fc430213 100644 --- a/packages/frontend/src/lib/table/application/ColumnActions.svelte +++ b/packages/frontend/src/lib/table/application/ColumnActions.svelte @@ -1,6 +1,7 @@ diff --git a/packages/frontend/src/lib/table/application/ColumnStatus.svelte b/packages/frontend/src/lib/table/application/ColumnStatus.svelte index 49692b58a..5946d2ad1 100644 --- a/packages/frontend/src/lib/table/application/ColumnStatus.svelte +++ b/packages/frontend/src/lib/table/application/ColumnStatus.svelte @@ -3,6 +3,7 @@ import { getApplicationStatus } from '../../../pages/applications'; import type { ApplicationState } from '@shared/src/models/IApplicationState'; import PodIcon from '../../images/PodIcon.svelte'; import { Spinner, StatusIcon } from '@podman-desktop/ui-svelte'; + export let object: ApplicationState; let status: string; diff --git a/packages/frontend/src/lib/table/model/ModelColumnActions.svelte b/packages/frontend/src/lib/table/model/ModelColumnActions.svelte index 238dc5d71..92f08caea 100644 --- a/packages/frontend/src/lib/table/model/ModelColumnActions.svelte +++ b/packages/frontend/src/lib/table/model/ModelColumnActions.svelte @@ -6,6 +6,7 @@ import { studioClient } from '/@/utils/client'; import { router } from 'tinro'; import { onMount } from 'svelte'; import { inferenceServers } from '/@/stores/inferenceServers'; + export let object: ModelInfo; let inUse: boolean = false; diff --git a/packages/frontend/src/lib/table/model/ModelColumnAge.svelte b/packages/frontend/src/lib/table/model/ModelColumnAge.svelte index f091844de..dde8c1420 100644 --- a/packages/frontend/src/lib/table/model/ModelColumnAge.svelte +++ b/packages/frontend/src/lib/table/model/ModelColumnAge.svelte @@ -1,6 +1,7 @@ diff --git a/packages/frontend/src/lib/table/model/ModelColumnLabels.svelte b/packages/frontend/src/lib/table/model/ModelColumnLabels.svelte index de4c0a210..36227a9f3 100644 --- a/packages/frontend/src/lib/table/model/ModelColumnLabels.svelte +++ b/packages/frontend/src/lib/table/model/ModelColumnLabels.svelte @@ -3,6 +3,7 @@ import type { ModelInfo } from '@shared/src/models/IModelInfo'; import { faMemory } from '@fortawesome/free-solid-svg-icons'; import { filesize } from 'filesize'; import Badge from '../../Badge.svelte'; + export let object: ModelInfo; diff --git a/packages/frontend/src/lib/table/model/ModelColumnName.svelte b/packages/frontend/src/lib/table/model/ModelColumnName.svelte index eef1d7cf0..b82a3c076 100644 --- a/packages/frontend/src/lib/table/model/ModelColumnName.svelte +++ b/packages/frontend/src/lib/table/model/ModelColumnName.svelte @@ -1,6 +1,7 @@ diff --git a/packages/frontend/src/lib/table/playground/ConversationColumnAction.svelte b/packages/frontend/src/lib/table/playground/ConversationColumnAction.svelte index c532c9b19..38606abdf 100644 --- a/packages/frontend/src/lib/table/playground/ConversationColumnAction.svelte +++ b/packages/frontend/src/lib/table/playground/ConversationColumnAction.svelte @@ -1,6 +1,7 @@ diff --git a/packages/frontend/src/lib/table/playground/PlaygroundColumnModel.svelte b/packages/frontend/src/lib/table/playground/PlaygroundColumnModel.svelte index 04d3b55c4..0f3fce9f4 100644 --- a/packages/frontend/src/lib/table/playground/PlaygroundColumnModel.svelte +++ b/packages/frontend/src/lib/table/playground/PlaygroundColumnModel.svelte @@ -1,5 +1,6 @@ diff --git a/packages/frontend/src/lib/table/service/ServiceColumnName.svelte b/packages/frontend/src/lib/table/service/ServiceColumnName.svelte index 4a5beb93f..1a72deb3e 100644 --- a/packages/frontend/src/lib/table/service/ServiceColumnName.svelte +++ b/packages/frontend/src/lib/table/service/ServiceColumnName.svelte @@ -1,6 +1,7 @@