Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 653 Bytes

no-duplicate-dollar-variables.md

File metadata and controls

56 lines (41 loc) · 653 Bytes

Pattern: Duplicate $-variable

Issue: -

Description

Disallow duplicate dollar variables within a stylesheet.

    $a: 1;
    $a: 2;
/** ↑
 * These are duplicates */

Examples

true

The following patterns are considered violations:

$a: 1;
$a: 2;
$a: 1;
$b: 2;
$a: 3;
$a: 1;
.b {
  $a: 1;
}

The following patterns are not considered violations:

$a: 1;
$b: 2;
$a: 1;
.b {
  $b: 2;
}

Further Reading