diff --git a/eslint.config.ts b/eslint.config.ts index 13068d621d..9f4b83281b 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -22,7 +22,9 @@ const extraFileExtensions = ['.vue'] const commonGlobals = { ...globals.browser, - __COMFYUI_FRONTEND_VERSION__: 'readonly' + __COMFYUI_FRONTEND_VERSION__: 'readonly', + __DISTRIBUTION__: 'readonly', + __IS_NIGHTLY__: 'readonly' } as const const settings = { diff --git a/src/App.vue b/src/App.vue index f9e34fc683..0a7ace0181 100644 --- a/src/App.vue +++ b/src/App.vue @@ -51,7 +51,6 @@ onMounted(() => { // See: https://vite.dev/guide/build#load-error-handling window.addEventListener('vite:preloadError', (event) => { event.preventDefault() - // eslint-disable-next-line no-undef if (__DISTRIBUTION__ === 'cloud') { captureException(event.payload, { tags: { error_type: 'vite_preload_error' } diff --git a/src/components/curve/CurveEditor.test.ts b/src/components/curve/CurveEditor.test.ts index f1cd2462b5..e04eae8329 100644 --- a/src/components/curve/CurveEditor.test.ts +++ b/src/components/curve/CurveEditor.test.ts @@ -1,7 +1,7 @@ import { mount } from '@vue/test-utils' import { describe, expect, it } from 'vitest' -import type { CurvePoint } from '@/lib/litegraph/src/types/widgets' +import type { CurvePoint } from './types' import CurveEditor from './CurveEditor.vue' diff --git a/src/components/curve/CurveEditor.vue b/src/components/curve/CurveEditor.vue index 751d814b4e..85a64bc5b2 100644 --- a/src/components/curve/CurveEditor.vue +++ b/src/components/curve/CurveEditor.vue @@ -77,7 +77,8 @@ import { computed, useTemplateRef } from 'vue' import { useCurveEditor } from '@/composables/useCurveEditor' -import type { CurvePoint } from '@/lib/litegraph/src/types/widgets' + +import type { CurvePoint } from './types' import { histogramToPath } from './curveUtils' diff --git a/src/components/curve/WidgetCurve.vue b/src/components/curve/WidgetCurve.vue index 1617a44b0c..85a16adc64 100644 --- a/src/components/curve/WidgetCurve.vue +++ b/src/components/curve/WidgetCurve.vue @@ -3,7 +3,7 @@