Skip to content
 
 

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

emotion-composes-codemod

Transform composes to random interpolations for emotion 8.

npm install -g jscodeshift
npm install https://github.com/emotion-js/emotion-composes-codemod
jscodeshift -t emotion-composes-codemod/transforms/composes <path>

Will modify files in place, so make sure you can recover if it goes wrong!

In

css`
  composes: ${flex};
`

Out

css`
  ${flex};
`

Caveats

Random interpolations do not support interpolating regular class names like composes.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages