-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
This plugin does not seem to support Sass interpolation.
input.scss:
/** @define ComponentName */
.ComponentName {
$ComponentName: &;
&--modifierName {
color: blue;
#{$ComponentName} { // <- Sass interpolation
&-decendantName {
color: red;
}
}
}
}postcss-bem-linter result:
input.scss
9:7 ✖ Invalid component selector plugin/selector-bem-pattern
".ComponentName--modifierName
#{$ComponentName}-decendantName"
output.css
/** @define ComponentName */
.ComponentName--modifierName {
color: blue;
}
.ComponentName--modifierName .ComponentName-decendantName {
color: red;
}postcss-bem-linter result:
No errors
jnns, elyseholladay, Yohandah and Rock-n-Roll-CRC
Metadata
Metadata
Assignees
Labels
No labels