Skip to content

emotion-js/emotion-composes-codemod

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%