-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
quotes in comments break stylelint in less mode #145
Comments
Thanks for opening an issue 🍺 I would be happy to review a pull request which addressed the line numbering problem. |
There is an "extended version" of bug described in stylelint/stylelint#5115 . |
* Add test case for single comment with quote symbol at the end (#145) * Fix bug connected with creating new single line comment with quote symbol token.
Fixed by #154 |
Hi,
I noticed that stylelint does not handle single quotes in // comments well.
This might be a duplicate of #130 but i'm still having this issue.
I can sort of reproduce it in the demo environment, but not really. Locally the quote causes the linenumbers to start at 0 at the quote again, so errors following the quote will have incorrect linenumbers.
In the demo the duplicate selector isn't found by stylelint, but only if the quote if on the end of the line, locally it doesn't matter where the quote is in the comment.
/* */ comments work fine btw.
Version: 9.10.1 and 11.1.1 (did not test any other versions)
@evilebottnawi asked me to open an issue (stylelint/stylelint#4411) here as he thinks the issue is caused by postcss-less.
LESS
Expected Behavior
Stylelint shows the correct line
Actual Behavior
Stylelint resets the linenumbers when a quote is found in a single line comment.
How can we reproduce the behavior?
Try to stylelint the provided less
The text was updated successfully, but these errors were encountered: