Replies: 2 comments
-
|
In the meantime, there have been two custom syntaxes published 🎉🙌
I would suggest that anyone looking to set up Stylelint with Emotion or Styled Components to try these out! Super big thanks to @43081j and @hudochenkov for putting in the work to get these out the door! |
Beta Was this translation helpful? Give feedback.
-
|
This has been solved by the community. The recommended approach today is {
"overrides": [
{
"files": ["**/*.{js,jsx,ts,tsx}"],
"customSyntax": "postcss-styled-syntax"
}
]
}For context: Stylelint removed its built-in CSS-in-JS support after v14 in favor of pluggable custom syntaxes, and the old The alternative mentioned in the thread ( |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, Emotion contributor here. Wanted to make you aware of this feature request: emotion-js/emotion#2695
I know very little about this, but seems like it could be possible to make a single custom syntax that works for both SC and Emotion. Or at least we could make 2 packages that share some of the code. Very low priority issue for me personally but if someone wants to tackle this that would be rad.
Beta Was this translation helpful? Give feedback.
All reactions