[codemods] Scaffold @stylexjs/codemods package + verification checks (Emotion→StyleX, 1/6)#1768
Open
ahmedsadid wants to merge 4 commits into
Open
[codemods] Scaffold @stylexjs/codemods package + verification checks (Emotion→StyleX, 1/6)#1768ahmedsadid wants to merge 4 commits into
ahmedsadid wants to merge 4 commits into
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…te proven to fail on a broken pair Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
@ahmedsadid is attempting to deploy a commit to the Meta Open Source Team on Vercel. A member of the Team first needs to authorize it. |
2 tasks
ahmedsadid
force-pushed
the
codemod/emotion-m0-scaffold
branch
from
July 23, 2026 23:47
6383c3d to
d186625
Compare
Contributor
Author
Prettier CI: failure is a pre-existing upstream line in eslint-plugin/.../cssProperties.js (#1760), untouched by this stack — unrelated to every PR in the series. |
ahmedsadid
marked this pull request as ready for review
July 24, 2026 00:35
ahmedsadid
force-pushed
the
codemod/emotion-m0-scaffold
branch
from
July 25, 2026 02:34
d186625 to
d485a6c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What changed / motivation ?
Adds the
@stylexjs/codemodspackage — the foundation for an Emotion → StyleXmigration codemod (#1766). First of ~6 stacked PRs; this one is scaffolding and
test infrastructure only, with no transform logic yet, so it can be reviewed on
its own.
It sets up the package and the three checks every future conversion has to pass:
@stylexjs/babel-plugin,@stylexjs/eslint-pluginat error with no autofixes, and@emotion/serialize).Each check is proven to fail on a deliberately-broken input, not only to pass on
a valid one.
The package is split into a shared engine (
src/core/) and per-library adapters(
src/adapters/, Emotion first).core/never imports fromadapters/,enforced by a test — so a new source library means a new adapter, not an engine
change. The transform itself lands in the next PR.
Linked PR/Issues
Part of #1766
Additional Context
6 test suites, all green. Two end-to-end fixture assertions are skipped until the
transform lands (PR 2). Changes outside the package: a
.flowconfigmapping andan
.eslintrc.jsignore for the test fixtures, smallflow_modules/typestubs, and
yarn.lock.Pre-flight checklist