Replies: 3 comments 1 reply
-
It depends on how your |
Beta Was this translation helpful? Give feedback.
0 replies
-
I recommend using object styles if using TypeScript — that way the TypeScript compiler can verify the structure of your CSS object is valid. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I'm working on a project that uses Emotion in Typescript files. We recently had an issue where a missing bracket at the end of a CSS block in a
styled()
element definition didn't result in warnings or errors, but did result in different behavior on different platforms.Is there some sort of strict mode to catch this, or a linter/ESlint plugin that will validate embedded CSS?
@emotion/eslint-plugin
doesn't seem to address this, so I'm wondering if there's anything else out there that might (I'm very new to this ecosystem, so I apologize if this is a common/obvious question).Thank you!
Beta Was this translation helpful? Give feedback.
All reactions