styled-components / webstorm-styled-components

styled-components highlighting support in IntelliJ editors
https://plugins.jetbrains.com/plugin/9997-styled-components
MIT License
375 stars 19 forks source link

Prettier doesn't work with createGlobalStyle #61

Closed LouisCuvelier closed 5 years ago

LouisCuvelier commented 5 years ago

Hi,

Prettier doesn't want to reformat code only when createGlobalStyle is used.

Can you do something please ?

Thanks you in advance and best regards, Louis Cuvelier.

madlordory commented 5 years ago

same problem! up ! up !

undeadcat commented 5 years ago

Issues with Prettier should be reported in the 'prettier' repository: https://github/prettier/prettier.
You can see that it's an issue with Prettier by trying to format code in the prettier playground or by using prettier from the command line.

Seems like previously methods like injectGlobal were supported, but then support was dropped in this issue. Support for createGlobalStyle was later declined.