Users who don't fully understand how Sass's unit arithmetic works will often write code like #{$var}px in an attempt to add units to a number. However, this produces an unquoted string rather than an actual numeric value, which means it won't work with arithmetic or Sass functions. It would be good to provide a lint that suggests they write $var * 1px instead and that links to documentation on how number arithmetic works.
Users who don't fully understand how Sass's unit arithmetic works will often write code like
#{$var}px
in an attempt to add units to a number. However, this produces an unquoted string rather than an actual numeric value, which means it won't work with arithmetic or Sass functions. It would be good to provide a lint that suggests they write$var * 1px
instead and that links to documentation on how number arithmetic works.