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

Semicolon is added after single line comment #25

Open
robertmaier opened this issue Nov 30, 2023 · 2 comments
Open

Semicolon is added after single line comment #25

robertmaier opened this issue Nov 30, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@robertmaier
Copy link

Hey there :)
I've just tried to add stylelint-stylus to our codebase and came across a bug in the semicolon rule.

using "stylus/semicolon": "always", the semicolon is added after the single line comment

before:
height: 40px // comment

after:
height: 40px // comment;

this causes the linter to still throw an error, as the semicolon is not part of the code, but part of the comment

@ota-meshi ota-meshi added the bug Something isn't working label Nov 30, 2023
@ota-meshi
Copy link
Member

Thank you for posting the issue!
It may be a bug in stringify of postcss-styl.

@robertmaier
Copy link
Author

possibly. I tried to debug it and was confused about the comment not showing up in the AST

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants