mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 10:59:53 +00:00
fix(desktop-ui): resolve linting and typecheck errors (#7271)
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)
This commit is contained in:
@@ -15,6 +15,7 @@ import {
|
||||
parser as tseslintParser
|
||||
} from 'typescript-eslint'
|
||||
import vueParser from 'vue-eslint-parser'
|
||||
import path from 'node:path'
|
||||
|
||||
const extraFileExtensions = ['.vue']
|
||||
|
||||
@@ -292,6 +293,9 @@ export default defineConfig([
|
||||
'no-console': 'off'
|
||||
}
|
||||
},
|
||||
|
||||
// Turn off ESLint rules that are already handled by oxlint
|
||||
...oxlint.buildFromOxlintConfigFile('./.oxlintrc.json')
|
||||
...oxlint.buildFromOxlintConfigFile(
|
||||
path.resolve(import.meta.dirname, '.oxlintrc.json')
|
||||
)
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user