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

Add support for code with inline comments #20

Open
LuighiV opened this issue May 21, 2021 · 0 comments
Open

Add support for code with inline comments #20

LuighiV opened this issue May 21, 2021 · 0 comments

Comments

@LuighiV
Copy link

LuighiV commented May 21, 2021

Hi, I had identified that the eslint doesn't run when there is a comment inside a styled props declaration.

For example in this code, the rules don't get applied:

export const Myblock = styled('h1')`
  // color: ${({ theme }) => theme.colors.primary};
  font-size: 1.375rem;
  text-align: center;
  font-weight: bold;
`;

However, if I delete the line with the comment, the ESLint rules are applied sucessfully:

export const Myblock = styled('h1')`
  font-size: 1.375rem;
  font-weight: bold;
  text-align: center;
`;
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

1 participant