diff --git a/eslint.config.js b/eslint.config.js index 168fa88e0..e57ecf14b 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -14,7 +14,14 @@ export default [ 'src/types/vue-shim.d.ts' ] }, - { languageOptions: { globals: globals.browser } }, + { + languageOptions: { + globals: { + ...globals.browser, + __COMFYUI_FRONTEND_VERSION__: 'readonly' + } + } + }, pluginJs.configs.recommended, ...tseslint.configs.recommended, ...pluginVue.configs['flat/essential'], diff --git a/global.d.ts b/global.d.ts new file mode 100644 index 000000000..41aa0c1ef --- /dev/null +++ b/global.d.ts @@ -0,0 +1 @@ +declare const __COMFYUI_FRONTEND_VERSION__: string diff --git a/index.html b/index.html index 39dac8fe0..f60011061 100644 --- a/index.html +++ b/index.html @@ -4,21 +4,6 @@