stylelint-config-recommended-scss
stylelint-config-recommended-scss copied to clipboard
'color-function-notation' rule is incompatible with SCSS rgb($color, $alpha) format
Hi all - bit of an edge case here, but seemed worth reporting.
In this repository's ruleset, the 'color-function-notation' rule is set to 'modern' (inherited from here )
However, this modifies code like rgb(black, 0.5);
to rgb(black 0.5);
- causing compilation errors, as SASS supports the format rgb($color, $alpha) but not rgb($color $alpha)
https://sass-lang.com/documentation/modules#rgb
Thanks for reporting this @WillowHayward !
I tried adding a test case for using rgb(black, 0.5);
, but at least with the latest version I can not get the test to fail. Could you check if this is still a problem with the newest release?