styled-components with stylelint & babel-proposal-optional-chaining
May 14, 2018 at 2:23pmstyled-components with stylelint & babel-proposal-optional-chaining
May 14, 2018 at 2:23pmAny one experience with using stylelint and optional chaining in an project?
I am trying to implement both in an project, where optional-chaining is used for the default theming of components.
But as soon as optional-chaining is used in a file, stylelint won't find any errors and says everything is ok, even if it isn't so.
Examples:
const Button = styled.button`background-color: white // no error (missing semicolon)border-color: ${props => props.theme.button?.borderColor || 'transparent'};`
const Button = styled.button`background-color: white // missing semicolonborder-color: ${props.theme.button.borderColor};`
Hope this is the right channel for this question :)
May 14, 2018 at 2:50pm
Can you open an issue in the processor repo with a failing test? That'd be super helpful
May 15, 2018 at 6:00am
i opened one, hope it is ok so:
thank you in advance :)