Skip to content

hyperframes lint: warn on [data-composition-id="<self>"] selectors that do not isolate per-instance #557

Closed

Description

@sidorovanthon

Summary

Until per-instance CSS scoping is fixed (see #556), block authors who follow the documented pattern [data-composition-id="my-comp"] { ... } will silently ship blocks that leak across sibling instances. A lint warning would catch this before it hits production rendering.

Suggested rule

For each composition file, parse its CSS (inline <style> and external .css referenced by <link>). For each rule whose selector contains [data-composition-id="<value>"] where <value> matches the file's own composition id (i.e., the value of data-composition-id on the root element):

Notes

Related


Generated by Claude Code (Opus 4.7).

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions