rules.scsslint.PrivateNamingConvention.html Maven / Gradle / Ivy
Details
Disabled by default
Enforces that functions, mixins, and variables that follow the private naming
convention (default to underscore-prefixed, e.g. $_foo
) are defined and used
within the same file.
Bad
$_foo: #f00;
p {
color: #00f;
}
Bad
p {
color: $_foo;
}
Bad
p {
color: $_foo;
}
$_foo: #f00;
Good
$_foo: #f00;
p {
color: $_foo;
}
Configuration Option
Description
prefix
Prefix used to denote "private" (default _
)