From 59429cbe56dfd62fb3239b0f9603c378bf63aed3 Mon Sep 17 00:00:00 2001 From: Benjamin Lu Date: Tue, 9 Dec 2025 22:27:11 -0800 Subject: [PATCH] fix(desktop-ui): resolve linting and typecheck errors (#7271) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes linting configuration and type errors in apps/desktop-ui. ## Changes - Updated `eslint.config.ts` to use absolute path for `.oxlintrc.json` resolution. - Fixed `import-x` errors in `InstallFooter.vue`, `refUtil.ts`, and `DesktopDialogView.vue`. - Fixed i18n raw text error in `NotSupportedView.vue` via eslint-disable. - Fixed type inference issue in `i18n.ts` allowing dynamic locale switching. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7271-fix-desktop-ui-resolve-linting-and-typecheck-errors-2c46d73d3650817cbb66cc7b1dc670a8) by [Unito](https://www.unito.io) --- apps/desktop-ui/package.json | 2 ++ .../src/components/install/InstallFooter.vue | 3 ++- apps/desktop-ui/src/i18n.ts | 10 ++++++---- apps/desktop-ui/src/utils/refUtil.ts | 3 ++- apps/desktop-ui/src/views/DesktopDialogView.vue | 3 ++- apps/desktop-ui/src/views/NotSupportedView.vue | 2 +- eslint.config.ts | 6 +++++- package.json | 2 ++ src/locales/en/main.json | 1 + 9 files changed, 23 insertions(+), 9 deletions(-) diff --git a/apps/desktop-ui/package.json b/apps/desktop-ui/package.json index b8962395a..a3d36f1a5 100644 --- a/apps/desktop-ui/package.json +++ b/apps/desktop-ui/package.json @@ -87,6 +87,8 @@ } }, "scripts": { + "lint": "nx run @comfyorg/desktop-ui:lint", + "typecheck": "nx run @comfyorg/desktop-ui:typecheck", "storybook": "storybook dev -p 6007", "build-storybook": "storybook build -o dist/storybook" }, diff --git a/apps/desktop-ui/src/components/install/InstallFooter.vue b/apps/desktop-ui/src/components/install/InstallFooter.vue index ef9ab698c..4c9302022 100644 --- a/apps/desktop-ui/src/components/install/InstallFooter.vue +++ b/apps/desktop-ui/src/components/install/InstallFooter.vue @@ -40,7 +40,8 @@