stylelint-config-styled-components
stylelint-config-styled-components copied to clipboard
Fix stylelint rules conflicting with the styled-components processor
When using stylelint-processor-styled-components, stylelint default config complain about a few placeholder the processor use. I felt it'd be quite convenient to have those handled out of the box by the base configuration.
I was just about to ask about this. 👍for this being reviewed. Example line:
55:19 ✖ Expected "dummyValue" to be "dummyvalue" value-keyword-case
with
function isShowingStyle() {}
export default styled.div`
// ...
${isShowingStyle}
`;
This one's missing I think:
"value-keyword-case": [
"lower",
{
"ignoreTypes": ["$dummyValue"]
}
]