-
Notifications
You must be signed in to change notification settings - Fork 484
Open
Labels
Description
Problem
Multiple files require // eslint-disable-next-line no-undef comments when accessing the __DISTRIBUTION__ global variable, despite it being properly declared in src/platform/distribution/types.ts.
Current Occurrences
Files with eslint-disable comments:
src/App.vue(line 53)src/components/custom/widget/WorkflowTemplateSelectorDialog.vue(line 432)
Context
__DISTRIBUTION__ is a Vite define constant that gets replaced at build time. While TypeScript recognizes the global declaration, ESLint's no-undef rule still flags it as undefined.
Potential Solutions
- Configure ESLint globals to recognize
__DISTRIBUTION__and other Vite defines - Improve TypeScript type declarations to work better with ESLint
- Use a wrapper constant from
src/platform/distribution/types.tsinstead of direct global access - Document the pattern if eslint-disable is the intended approach
Related
- PR: fix: replace vite preload error reload with error logging #8261
- Discussion: fix: replace vite preload error reload with error logging #8261 (comment)
- Requested by: @DrJKL
┆Issue is synchronized with this Notion page by Unito