Skip to content

fix(lint): ignore head literals inside scripts#2337

Closed
miguel-heygen wants to merge 1 commit into
mainfrom
fix/head-leaked-script-comment
Closed

fix(lint): ignore head literals inside scripts#2337
miguel-heygen wants to merge 1 commit into
mainfrom
fix/head-leaked-script-comment

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

Summary

  • ignore fake <head> matches inside script/style/text containers
  • preserve linting for real document heads including template-wrapped compositions
  • add regression coverage for a body script comment containing <head>

Reproduction

Confirmed on published 0.7.56: hyperframes lint --json emitted head_leaked_text for a valid inline script comment.

Tests

  • bun run --cwd packages/lint test src/rules/core.test.ts
  • bun run --cwd packages/lint typecheck
  • pre-commit lint/format/fallow/typecheck

@miguel-heygen

Copy link
Copy Markdown
Collaborator Author

Superseded by #2348, which preserves this head-literal regression coverage and also fixes the related audio-overlap false positive. Closing the narrower duplicate.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant