Skip to content

@visionset/media core has no gate against fetch, Blob or File #852

Description

@JArmandoAnaya

frontend/media/eslint.config.js keeps browser host globals out of the package core with no-restricted-globals over BROWSER_HOST - document, window, navigator, location, history, screen, localStorage, sessionStorage and the decode primitives.

It does not list fetch, Blob, File, URL, self or caches, and no script gate scans frontend/media/src at all: tests/scripts/ui_core_boundary.test.mjs reads frontend/ui-core/src only.

So the core of the package whose entire purpose is to be host-neutral could acquire a fetch( and nothing would fire. ui-core has both an ESLint rule and a text scan for this; the newer package has neither.

Direction: extend the globals list, and give frontend/media/src the same text-scan treatment ui-core gets, including the fires-on-violation probe that keeps the scan from passing vacuously.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontendannotator / ui-core / app packagestoolingDeveloper tooling: scripts, checks, local workflow

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions