createGlobalStyle not being auto formatted
See original GitHub issueAnything inside another styled tag will be properly formatted, for example a styled.div
. But a createGlobaStyle
function will not have it’s contents formatted. Color is still being applied, but formatting won’t happen.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:12
- Comments:21
Top Results From Across the Web
Prettier is not formatting my Styled Components code
This is the code that I am expecting to get after formatting through Prettier and Eslint (but I am not) : import {...
Read more >FAQs - styled-components
In general, always use the css helper when composing styling partials to be interpolated into a styled component.. import styled, { keyframes } ......
Read more >React Styled Components - 10 - Global Styles - YouTube
10 React Antipatterns to Avoid - Code This, Not That! ... Python Tutorial: Logging Basics - Logging to Files, Setting Levels, and Formatting....
Read more >Setting Up Styled Components
It lets us create React components with styles automatically ... The answer is no — Styled Components has something called createGlobalStyle ...
Read more >How To Use React Styled Components Efficiently - Copycat
Unused CSS Cleanup: it automatically cleans up CSS declarations not in use, consequently reducing file size and bundle size.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
flowing code works 💪
Same issue, not sure of any side-effects yet but as a workaround, I’m just wrapping the whole thing in the
css
function, which seems to re-enable the auto-formatting.