styled-components / vscode-styled-components

Syntax highlighting for styled-components
MIT License
917 stars 118 forks source link

Prettier formatting not working with createGlobalStyle | possibly intentional design decision #397

Closed tigran-iii closed 1 year ago

tigran-iii commented 1 year ago

Description As you know this extension supports syntax highlighting, and it also works nicely with Prettier for formatting with styled syntax.

The issue is that createGlobalStyle doesn't get formatted by Prettier for whatever reason. Not sure if it's a Prettier issue, or connected with this repo.

Expected behavior
Expected createGlobalStyle to behave like usual template literals of styled-components.

jasonwilliams commented 1 year ago

Please use the template otherwise I will close the issue. We have very little to work with here. Secondly, this extension doesn't do any formatting, so if prettier is not formatting properly you may need to raise it with them