stylelint-config-recommended-scss icon indicating copy to clipboard operation
stylelint-config-recommended-scss copied to clipboard

'color-function-notation' rule is incompatible with SCSS rgb($color, $alpha) format

Open WillowHayward opened this issue 2 years ago • 1 comments

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

WillowHayward avatar Jan 09 '23 07:01 WillowHayward

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?

kristerkari avatar Feb 13 '23 14:02 kristerkari