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
The rule at-rule-empty-line-before enforces a line break before anything with an @, which in SCSS can be quite a few things e.g. @function. We have this configured to still allow comments before, but it only recognises comments of the format /* comment */ and not // comment. I suspect because these aren't really allowed in vanilla CSS.
at-rule-empty-line-before
@function
/* comment */
// comment
The text was updated successfully, but these errors were encountered:
@mattheu so, given that //-style "comments", indeed, are not actual comments according to CSS specification, do you still think this is a bug?
//
Maybe we should disallow these comments, and enforce using proper /* CSS comments. */...?
/* CSS comments. */
Sorry, something went wrong.
Yeah that would also work too I think
There are a few stylelint-scss comment rules we can add:
via https://github.com/kristerkari/stylelint-scss/#-comment
double-slash-comment-empty-line-before
double-slash-comment-inline
double-slash-comment-whitespace-inside
No branches or pull requests
The rule
at-rule-empty-line-before
enforces a line break before anything with an @, which in SCSS can be quite a few things e.g.@function
. We have this configured to still allow comments before, but it only recognises comments of the format/* comment */
and not// comment
. I suspect because these aren't really allowed in vanilla CSS.The text was updated successfully, but these errors were encountered: