-
Notifications
You must be signed in to change notification settings - Fork 61
Add support for css prop #270
Comments
@njdancer Could you please explain a little more about it? Some codes are better. Sorry I didn't catch your idea. |
OK. So this feature should be being able to lint inline css props like following. I know our processor can not lint @njdancer @nhooyr The key point is how to extract css content. We can extend the logic in
|
Hi guys, It would be great to have this feature prioritized. Let me add one more use case here. When using conditionals in SC, sometimes you need to change a couple of CSS properties based on a single condition. And instead of having a couple of single conditions, the following approach is much more convenient and readable:
Currently, this level of properties isn't linted as well. I believe, this approach is widely used as well. So, +1 for this feature . |
Styled components now supports the css prop via a babel plugin. Currently these blocks are not detected by this processor preventing inline css from being linted. Would be great if these blocks could be forwarded to stylelint.
Couldn't find any other discussions for this and I'm not sure what else to provide. If someone could point me in the right direction I may be able to write a patch
The text was updated successfully, but these errors were encountered: