Skip to content
New issue

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

Support single-line comments in template literals #43

Open
jeddy3 opened this issue Feb 27, 2019 · 1 comment
Open

Support single-line comments in template literals #43

jeddy3 opened this issue Feb 27, 2019 · 1 comment

Comments

@jeddy3
Copy link

jeddy3 commented Feb 27, 2019

import styled from 'styled-components';
const Title = styled.h1`
  // single-line comment
`;

Gives:

3:3 error Unknown word (CssSyntaxError)

style components uses stylis behind the scenes, a preprocessor that supports single-line comments.

It'd be great if this PostCSS syntax can cope with single-line comments too.

@hudochenkov
Copy link

I think this issue should be in https://github.com/gucong3000/postcss-jsx, because we use postcss-jsx only in stylelint.

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

No branches or pull requests

2 participants