Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

Stylelint not working with withConfig #159

Closed
bezenson opened this issue Jan 9, 2018 · 1 comment
Closed

Stylelint not working with withConfig #159

bezenson opened this issue Jan 9, 2018 · 1 comment

Comments

@bezenson
Copy link

bezenson commented Jan 9, 2018

My styled components are declared in next way:

export const IconWrapStyled = styled.div.withConfig({
  displayName: 'IconWrapStyled',
})`
  height: 2.083vw;
  width: 2.083vw;
  svg {
    height: 100%;
  width: 100%;
  }
`;

When I remove withConfig - linter works. Otherwise it don't.

@mxstbr
Copy link
Member

mxstbr commented Jan 9, 2018

You should never ever use .withConfig manually, which is why none of our tooling supports it. Let the Babel plugin automatically add it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants