We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using a multiline arrow function "Unknown word" error is thrown.
I'm using the latest stylelint@9.10.1 which uses postcss-jsx@0.36.0:
> stylelint "**/*.styled.js" Button.styled.js 8:3 ✖ Unknown word CssSyntaxError
import { css } from 'styled-components'; export const buttonStyles = css` border-radius: 4px; cursor: pointer; ${(props) => { return props.small && 'padding: 30px;'; }} `;
This issue is similar to gucong3000/postcss-styled#37.
The text was updated successfully, but these errors were encountered:
Same error for me when using code like this:
import { css } from '@emotion/core' const text = active => css` color: red; ${active && css` color: green; ` } `
Sorry, something went wrong.
386dc2f
Successfully merging a pull request may close this issue.
When using a multiline arrow function "Unknown word" error is thrown.
I'm using the latest stylelint@9.10.1 which uses postcss-jsx@0.36.0:
This issue is similar to gucong3000/postcss-styled#37.
The text was updated successfully, but these errors were encountered: