function-quote-no-quoted-strings-inside

November 20, 2019 · View on GitHub

Disallow quoted strings inside the quote function

p {
  font-family: quote("Helvetica");
  /**                ↑         ↑
   * These quotes are unnecessary
   */
}

Options

true

The following patterns are considered violations:

a {
  font-family: quote("Helvetica");
}
$font: "Helvetica";
p {
  font-family: quote($font);
}

The following patterns are not considered violations:

a {
  color: quote(blue);
}
$font: Helvetica;
p {
  font-family: quote($font);
}