Skip to content

fix(lint): skip layoutsubtree canvas transform conflicts#1832

Open
AjTheSpidey wants to merge 1 commit into
heygen-com:mainfrom
AjTheSpidey:codex/gsap-layoutsubtree-transform-exempt
Open

fix(lint): skip layoutsubtree canvas transform conflicts#1832
AjTheSpidey wants to merge 1 commit into
heygen-com:mainfrom
AjTheSpidey:codex/gsap-layoutsubtree-transform-exempt

Conversation

@AjTheSpidey

Copy link
Copy Markdown

I took the html-in-canvas false-positive part from #1789.\n\nThis makes gsap_css_transform_conflict ignore CSS transforms that only belong to a canvas marked layoutsubtree. I think that case is safe to skip because the canvas is acting as the captured subtree boundary, not a normal DOM element where GSAP would accidentally wipe out authored centering/scale.\n\nI also reused the existing simple selector helper for inline styles while I was in there.\n\nThis worked locally for me:\n- bun run --filter @hyperframes/parsers build\n- bun run --filter @hyperframes/lint test -- src/rules/gsap.test.ts\n- bun run --filter @hyperframes/lint typecheck\n- bun x oxfmt --check packages/lint/src/rules/gsap.ts packages/lint/src/rules/gsap.test.ts\n- bun x oxlint --no-error-on-unmatched-pattern packages/lint/src/rules/gsap.ts packages/lint/src/rules/gsap.test.ts

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.

2 participants