You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 14, 2021. It is now read-only.
We should add an option (importName? library? package?) to allow users to say that the name of the imported package is different so it can be used with styled-jss, emotion, etc.
It'd be a shame if all those libraries had to build their own processor, when really they only have to change that one string and it'd work. I don't think we should promise any particular level of support, since all those libraries have slightly diverging APIs, but having basic support would be prettttttty great. (and also awesome to get out with v1.0)
The text was updated successfully, but these errors were encountered:
Right now this processor is hard-coded to only work with
styled-components
due to checking the import name here:stylelint-processor-styled-components/src/utils/styled.js
Lines 6 to 7 in f67b192
We should add an option (
importName
?library
?package
?) to allow users to say that the name of the imported package is different so it can be used withstyled-jss
,emotion
, etc.It'd be a shame if all those libraries had to build their own processor, when really they only have to change that one string and it'd work. I don't think we should promise any particular level of support, since all those libraries have slightly diverging APIs, but having basic support would be prettttttty great. (and also awesome to get out with v1.0)
The text was updated successfully, but these errors were encountered: