Skip to content

chore(Reanimated): add lint step to disallow worklets includes#9262

Merged
tjzel merged 1 commit into
mainfrom
@tjzel/reanimated/validate-worklets-includes
Apr 16, 2026
Merged

chore(Reanimated): add lint step to disallow worklets includes#9262
tjzel merged 1 commit into
mainfrom
@tjzel/reanimated/validate-worklets-includes

Conversation

@tjzel

@tjzel tjzel commented Apr 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

Since #8996 Reanimated is only allowed to use symbols from <worklets/Compat/StableApi.h>. I'm adding a lint step that disallows other includes.

Test plan

I added a random include from worklets in native files and it was caught by the script.

@MatiPl01 MatiPl01 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@tjzel
tjzel added this pull request to the merge queue Apr 16, 2026
Merged via the queue into main with commit a21a20c Apr 16, 2026
15 checks passed
@tjzel
tjzel deleted the @tjzel/reanimated/validate-worklets-includes branch April 16, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants