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

Error declaration-block-no-duplicate-properties from rules with mixins only #55

Closed
avdeev opened this issue Jul 5, 2017 · 1 comment · Fixed by #59
Closed

Error declaration-block-no-duplicate-properties from rules with mixins only #55

avdeev opened this issue Jul 5, 2017 · 1 comment · Fixed by #59

Comments

@avdeev
Copy link

avdeev commented Jul 5, 2017

My code:

import styled from 'styled-components';
import { ellipsis } from 'polished';
import { TYPOGRAPHY } from 'style-constants';

const NameLink = styled.span`
  ${ellipsis('110px')}
  ${TYPOGRAPHY.bodyBold}
`;

export default NameLink;

7:3 ✖ Unexpected duplicate "undefined" declaration-block-no-duplicate-properties

@emilgoldsmith
Copy link
Member

+1 I have a similar problem when I use the media example from the styled-components docs as such:

${media.desktop`background-color: red;`}
${media.tablet`background-color: yellow;`}
${media.phone`background-color: purple;`}

emilgoldsmith added a commit to emilgoldsmith/stylelint-processor-styled-components that referenced this issue Jul 6, 2017
emilgoldsmith added a commit to emilgoldsmith/stylelint-processor-styled-components that referenced this issue Jul 8, 2017
emilgoldsmith added a commit to emilgoldsmith/stylelint-processor-styled-components that referenced this issue Jul 8, 2017
emilgoldsmith added a commit to emilgoldsmith/stylelint-processor-styled-components that referenced this issue Jul 8, 2017
emilgoldsmith added a commit to emilgoldsmith/stylelint-processor-styled-components that referenced this issue Jul 8, 2017
emilgoldsmith added a commit to emilgoldsmith/stylelint-processor-styled-components that referenced this issue Jul 8, 2017
emilgoldsmith added a commit to emilgoldsmith/stylelint-processor-styled-components that referenced this issue Jul 8, 2017
emilgoldsmith added a commit to emilgoldsmith/stylelint-processor-styled-components that referenced this issue Jul 8, 2017
mxstbr added a commit that referenced this issue Jul 10, 2017
…on-strings

Make -styled-mixins unique and clarify interpolation linting in readme
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants