-
-
Notifications
You must be signed in to change notification settings - Fork 930
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
False positives with SCSS maps in color-named #2009
Comments
@ThePeach Thanks for using the issue template. You can the
@stylelint/core Perhaps we should change the behaviour to ignore maps by default, and reserve Currently |
@jeddy3 thanks for the explanation. I don't have a use case on all the projects I'm using to do the automatic replacement with PostCSS and I'd rather write that once and forget about it. I've used the suggested option and it seems to be working fine. |
@jeddy3 I'm fine with ignoring maps by default. |
@ThePeach Would you like to contribute this fix? It'll just be the case of returning early if the "delc" isn't of standard syntax. |
@jeddy3 happy to help, I wonder if you linked to declaration-colon-newline-after for a specific reason or am I missing something? |
It contains an example of how to return early if the "decl" isn't of standard syntax :) |
Closed by #2182. |
This is a bug related to
color-named
and happens when a variable name has the same name of a key of a mapThe needed SCSS snippet to trigger this is the following:
7.5.0
via
gulp-stylelint
"Yes, it's related to SCSS maps."
"No warnings to be flagged."
"The following warnings were flagged:"
The text was updated successfully, but these errors were encountered: