SonarCSS parsing parameter names for 'Unexpected unknown unit' in scss

In the following scss, SonarCSS is parsing parameter names for ‘Unexpected unknown unit’:

$ee-icons: (
      1gb                 : "\e06e",
      3g                  : "\e06d",
      3gb                 : "\e06c",
      4g                  : "\e06b",
      4gee                : "\e06a",
      4gee-resumptive     : "\e069",
      4gee-streaming      : "\e068",

For ‘4gee-streaming’ it reports: Unexpected unknown unit “gee-streaming”

Hi,

Indeed parser considers a leading digit as a value and following text as a unit.

Putting it in quotes will remove these issues:

$ee-icons: (
      "1gb"               : "\e06e",
      "3g"                 : "\e06d",
      );

I also created this issue on stylelint repo (we use stylelint for css rules)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.