stylelint-config-styled-components icon indicating copy to clipboard operation
stylelint-config-styled-components copied to clipboard

Fix stylelint rules conflicting with the styled-components processor

Open SBoudrias opened this issue 5 years ago • 2 comments

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.

SBoudrias avatar Feb 28 '20 06:02 SBoudrias

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}
`;

MaffooBristol avatar Jun 01 '20 16:06 MaffooBristol

This one's missing I think:

"value-keyword-case": [
  "lower",
  {
    "ignoreTypes": ["$dummyValue"]
  }
]

underyx avatar Jul 06 '20 14:07 underyx